diff options
author | Elliott Hughes <enh@google.com> | 2011-06-07 16:39:20 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-06-07 16:39:20 -0700 |
commit | 708f143f318bb2167c810f9506102f4ad656545c (patch) | |
tree | 97e9b578ea7175f56a335cad1548bbf4ef0d0fbb /vm/Misc.h | |
parent | a0f945f21dd38df48946fcea57d798a9692734b8 (diff) | |
download | android_dalvik-708f143f318bb2167c810f9506102f4ad656545c.tar.gz android_dalvik-708f143f318bb2167c810f9506102f4ad656545c.tar.bz2 android_dalvik-708f143f318bb2167c810f9506102f4ad656545c.zip |
Improve "waiting on"/"waiting to lock" SIGQUIT dump info.
In particular, when we're waiting on a Class, say which class:
I(16573) - waiting on <0xf5ed54f8> (java.lang.Class<java.lang.ref.ReferenceQueue>)
versus:
I(16573) - waiting on <0xf5feda38> (a java.util.LinkedList)
Bug: http://code.google.com/p/android/issues/detail?id=17349
Change-Id: I844d02c008b1499adb02995ff3da25ba8cad0e0a
Diffstat (limited to 'vm/Misc.h')
-rw-r--r-- | vm/Misc.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -22,6 +22,7 @@ #include <string> +#include <stdarg.h> #include <stdio.h> #include <sys/types.h> #include <sys/time.h> @@ -303,4 +304,9 @@ bool dvmGetThreadStats(ProcStatData* pData, pid_t tid); */ const char* dvmPathToAbsolutePortion(const char* path); +/** + * Returns a string corresponding to printf-like formatting of the arguments. + */ +std::string dvmStringPrintf(const char* fmt, ...) __attribute__((__format__ (__printf__, 1, 2))); + #endif /*_DALVIK_MISC*/ |