From bfd6d481fa6a7217cafa6d7760674ec927500b5a Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Thu, 22 Oct 2009 17:25:57 -0700 Subject: [PATCH] Add a reference table dump call. This is just an android.os.Debug method that calls into the VM. Bug 2075355 --- core/java/android/os/Debug.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index b4f64b6d4a29b..b33e8be4e7457 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -752,6 +752,16 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo return VMDebug.cacheRegisterMap(classAndMethodDesc); } + /** + * Dumps the contents of VM reference tables (e.g. JNI locals and + * globals) to the log file. + * + * @hide + */ + public static final void dumpReferenceTables() { + VMDebug.dumpReferenceTables(); + } + /** * API for gathering and querying instruction counts. *