diff options
author | Andy McFadden <fadden@android.com> | 2012-09-18 17:50:59 -0700 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2012-09-18 19:01:09 -0700 |
commit | b3667a19f5c573b7785876979af4781292d27327 (patch) | |
tree | 533234845fec7e313d2285786a451955a3906d0d /vm/Misc.h | |
parent | 86913b6b88b9ad4a1eea14be928da6c9485d53c0 (diff) | |
download | android_dalvik-b3667a19f5c573b7785876979af4781292d27327.tar.gz android_dalvik-b3667a19f5c573b7785876979af4781292d27327.tar.bz2 android_dalvik-b3667a19f5c573b7785876979af4781292d27327.zip |
Log when the native trace is unavailable
This should allow us to differentiate between "couldn't get the
stack" and "didn't try to get the stack". Also show the thread's
state (e.g. 'R' for running, 'D' for uninterruptible syscall).
Bug 7053953
Change-Id: Ibc9e6a6f0fc855a4e5e8e133122232dc939bcb16
Diffstat (limited to 'vm/Misc.h')
-rw-r--r-- | vm/Misc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -300,6 +300,7 @@ void *dvmAllocRegion(size_t size, int prot, const char *name); * Get some per-thread stats from /proc/self/task/N/stat. */ struct ProcStatData { + char state; /* process state, e.g. 'R', 'S', 'D' */ unsigned long utime; /* number of jiffies scheduled in user mode */ unsigned long stime; /* number of jiffies scheduled in kernel mode */ int processor; /* number of CPU that last executed thread */ |