summaryrefslogtreecommitdiffstats
path: root/vm/Misc.h
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2012-09-18 17:50:59 -0700
committerAndy McFadden <fadden@android.com>2012-09-18 19:01:09 -0700
commitb3667a19f5c573b7785876979af4781292d27327 (patch)
tree533234845fec7e313d2285786a451955a3906d0d /vm/Misc.h
parent86913b6b88b9ad4a1eea14be928da6c9485d53c0 (diff)
downloadandroid_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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/Misc.h b/vm/Misc.h
index 86e0a71c4..4c425760d 100644
--- a/vm/Misc.h
+++ b/vm/Misc.h
@@ -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 */