diff options
author | Andy McFadden <fadden@android.com> | 2010-02-22 17:07:23 -0800 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2010-02-23 16:55:50 -0800 |
commit | e15a8eb2653da80c1c3816ddce8186746b57b4a3 (patch) | |
tree | 7c57bba1f714d43d15ec3a593f7e8d51de29e47e /vm/Profile.h | |
parent | e05ff80e7f496f41f2f543dcc7c64cbed5e9288e (diff) | |
download | android_dalvik-e15a8eb2653da80c1c3816ddce8186746b57b4a3.tar.gz android_dalvik-e15a8eb2653da80c1c3816ddce8186746b57b4a3.tar.bz2 android_dalvik-e15a8eb2653da80c1c3816ddce8186746b57b4a3.zip |
Add class init stats to alloc counters (API change).
Add calls to retrieve class initialization stats via the allocation
count mechanism.
Also: deprecate a method that is never used, and a redundantly declared
default filename that begins with "/sdcard".
For bug 2461549.
Diffstat (limited to 'vm/Profile.h')
-rw-r--r-- | vm/Profile.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vm/Profile.h b/vm/Profile.h index 7cac150e2..a294f831b 100644 --- a/vm/Profile.h +++ b/vm/Profile.h @@ -80,6 +80,9 @@ typedef struct AllocProfState { int gcCount; // #of times an allocation triggered a GC + int classInitCount; // #of initialized classes + u8 classInitTime; // cumulative time spent in class init (nsec) + #if PROFILE_EXTERNAL_ALLOCATIONS int externalAllocCount; // #of calls to dvmTrackExternalAllocation() int externalAllocSize; // #of bytes passed to ...ExternalAllocation() |