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. *