diff options
author | 2019-03-11 15:50:24 +0000 | |
---|---|---|
committer | 2019-03-12 00:25:43 +0000 | |
commit | 2d8b8119228bbe4202490b1d5fed6191989d5d83 (patch) | |
tree | 8740119024f873d08d2fc57022d1f5455f1d9ff6 /openjdkjvmti/ti_extension.cc | |
parent | 7cb707ffe41774150cd41283ebb6f9b3b86060ea (diff) |
Revert^2 "Add extension and agent for dumping internal jvmti plugin data."
This reverts commit 9da91d2ee78a32e4bfa5f402f23835652b87023e.
Reason for revert: Fixed issue with previous CL
Test: ./test.py --host
Change-Id: I02a2966439ac45b1843ea28e64b7b30f7282c794
Diffstat (limited to 'openjdkjvmti/ti_extension.cc')
-rw-r--r-- | openjdkjvmti/ti_extension.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/openjdkjvmti/ti_extension.cc b/openjdkjvmti/ti_extension.cc index 5d398844b2..f12cb0a380 100644 --- a/openjdkjvmti/ti_extension.cc +++ b/openjdkjvmti/ti_extension.cc @@ -38,6 +38,7 @@ #include "ti_allocator.h" #include "ti_class.h" #include "ti_ddms.h" +#include "ti_dump.h" #include "ti_heap.h" #include "ti_logging.h" #include "ti_monitor.h" @@ -312,6 +313,20 @@ jvmtiError ExtensionUtil::GetExtensionFunctions(jvmtiEnv* env, return error; } + // DumpInternalState + error = add_extension( + reinterpret_cast<jvmtiExtensionFunction>(DumpUtil::DumpInternalState), + "com.android.art.misc.get_plugin_internal_state", + "Gets internal state about the plugin and serializes it to the given msg. " + "There is no particular format to this message beyond being human readable.", + { + { "msg", JVMTI_KIND_ALLOC_BUF, JVMTI_TYPE_CCHAR, false }, + }, + { ERR(NULL_POINTER) }); + if (error != ERR(NONE)) { + return error; + } + // Copy into output buffer. *extension_count_ptr = ext_vector.size(); |