2 * Copyright (C) 2008 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * dalvik.system.VMDebug
21 #include "alloc/HeapSource.h"
22 #include "native/InternalNativePriv.h"
23 #include "hprof/Hprof.h"
30 * Extracts the fd from a FileDescriptor object.
32 * If an error is encountered, or the extracted descriptor is numerically
33 * invalid, this returns -1 with an exception raised.
35 static int getFileDescriptor(Object* obj)
38 assert(strcmp(obj->clazz->descriptor, "Ljava/io/FileDescriptor;") == 0);
40 int fd = dvmGetFieldInt(obj, gDvm.offJavaIoFileDescriptor_descriptor);
42 dvmThrowRuntimeException("Invalid file descriptor");
50 * static String[] getVmFeatureList()
52 * Return a set of strings describing available VM features (this is chiefly
53 * of interest to DDMS).
55 static void Dalvik_dalvik_system_VMDebug_getVmFeatureList(const u4* args, JValue* pResult) {
56 std::vector<std::string> features;
57 features.push_back("method-trace-profiling");
58 features.push_back("method-trace-profiling-streaming");
59 features.push_back("method-sample-profiling");
60 features.push_back("hprof-heap-dump");
61 features.push_back("hprof-heap-dump-streaming");
63 ArrayObject* result = dvmCreateStringArray(features);
64 dvmReleaseTrackedAlloc((Object*) result, dvmThreadSelf());
68 /* These must match the values in dalvik.system.VMDebug.
71 KIND_ALLOCATED_OBJECTS = 1<<0,
72 KIND_ALLOCATED_BYTES = 1<<1,
73 KIND_FREED_OBJECTS = 1<<2,
74 KIND_FREED_BYTES = 1<<3,
75 KIND_GC_INVOCATIONS = 1<<4,
76 KIND_CLASS_INIT_COUNT = 1<<5,
77 KIND_CLASS_INIT_TIME = 1<<6,
79 /* These values exist for backward compatibility. */
80 KIND_EXT_ALLOCATED_OBJECTS = 1<<12,
81 KIND_EXT_ALLOCATED_BYTES = 1<<13,
82 KIND_EXT_FREED_OBJECTS = 1<<14,
83 KIND_EXT_FREED_BYTES = 1<<15,
85 KIND_GLOBAL_ALLOCATED_OBJECTS = KIND_ALLOCATED_OBJECTS,
86 KIND_GLOBAL_ALLOCATED_BYTES = KIND_ALLOCATED_BYTES,
87 KIND_GLOBAL_FREED_OBJECTS = KIND_FREED_OBJECTS,
88 KIND_GLOBAL_FREED_BYTES = KIND_FREED_BYTES,
89 KIND_GLOBAL_GC_INVOCATIONS = KIND_GC_INVOCATIONS,
90 KIND_GLOBAL_CLASS_INIT_COUNT = KIND_CLASS_INIT_COUNT,
91 KIND_GLOBAL_CLASS_INIT_TIME = KIND_CLASS_INIT_TIME,
93 KIND_THREAD_ALLOCATED_OBJECTS = KIND_ALLOCATED_OBJECTS << 16,
94 KIND_THREAD_ALLOCATED_BYTES = KIND_ALLOCATED_BYTES << 16,
95 KIND_THREAD_FREED_OBJECTS = KIND_FREED_OBJECTS << 16,
96 KIND_THREAD_FREED_BYTES = KIND_FREED_BYTES << 16,
98 KIND_THREAD_GC_INVOCATIONS = KIND_GC_INVOCATIONS << 16,
100 // TODO: failedAllocCount, failedAllocSize
103 #define KIND_ALL_COUNTS 0xffffffff
106 * Zero out the specified fields.
108 static void clearAllocProfStateFields(AllocProfState *allocProf,
111 if (kinds & KIND_ALLOCATED_OBJECTS) {
112 allocProf->allocCount = 0;
114 if (kinds & KIND_ALLOCATED_BYTES) {
115 allocProf->allocSize = 0;
117 if (kinds & KIND_FREED_OBJECTS) {
118 allocProf->freeCount = 0;
120 if (kinds & KIND_FREED_BYTES) {
121 allocProf->freeSize = 0;
123 if (kinds & KIND_GC_INVOCATIONS) {
124 allocProf->gcCount = 0;
126 if (kinds & KIND_CLASS_INIT_COUNT) {
127 allocProf->classInitCount = 0;
129 if (kinds & KIND_CLASS_INIT_TIME) {
130 allocProf->classInitTime = 0;
135 * static void startAllocCounting()
137 * Reset the counters and enable counting.
139 * TODO: this currently only resets the per-thread counters for the current
140 * thread. If we actually start using the per-thread counters we'll
141 * probably want to fix this.
143 static void Dalvik_dalvik_system_VMDebug_startAllocCounting(const u4* args,
146 UNUSED_PARAMETER(args);
148 clearAllocProfStateFields(&gDvm.allocProf, KIND_ALL_COUNTS);
149 clearAllocProfStateFields(&dvmThreadSelf()->allocProf, KIND_ALL_COUNTS);
150 dvmStartAllocCounting();
155 * public static void stopAllocCounting()
157 static void Dalvik_dalvik_system_VMDebug_stopAllocCounting(const u4* args,
160 UNUSED_PARAMETER(args);
162 dvmStopAllocCounting();
167 * private static int getAllocCount(int kind)
169 static void Dalvik_dalvik_system_VMDebug_getAllocCount(const u4* args,
172 AllocProfState *allocProf;
173 unsigned int kind = args[0];
174 if (kind < (1<<16)) {
175 allocProf = &gDvm.allocProf;
177 allocProf = &dvmThreadSelf()->allocProf;
181 case KIND_ALLOCATED_OBJECTS:
182 pResult->i = allocProf->allocCount;
184 case KIND_ALLOCATED_BYTES:
185 pResult->i = allocProf->allocSize;
187 case KIND_FREED_OBJECTS:
188 pResult->i = allocProf->freeCount;
190 case KIND_FREED_BYTES:
191 pResult->i = allocProf->freeSize;
193 case KIND_GC_INVOCATIONS:
194 pResult->i = allocProf->gcCount;
196 case KIND_CLASS_INIT_COUNT:
197 pResult->i = allocProf->classInitCount;
199 case KIND_CLASS_INIT_TIME:
200 /* convert nsec to usec, reduce to 32 bits */
201 pResult->i = (int) (allocProf->classInitTime / 1000);
203 case KIND_EXT_ALLOCATED_OBJECTS:
204 case KIND_EXT_ALLOCATED_BYTES:
205 case KIND_EXT_FREED_OBJECTS:
206 case KIND_EXT_FREED_BYTES:
207 pResult->i = 0; /* backward compatibility */
216 * public static void resetAllocCount(int kinds)
218 static void Dalvik_dalvik_system_VMDebug_resetAllocCount(const u4* args,
221 unsigned int kinds = args[0];
222 clearAllocProfStateFields(&gDvm.allocProf, kinds & 0xffff);
223 clearAllocProfStateFields(&dvmThreadSelf()->allocProf, kinds >> 16);
228 * static void startMethodTracingDdmsImpl(int bufferSize, int flags,
229 * boolean samplingEnabled, int intervalUs)
231 * Start method trace profiling, sending results directly to DDMS.
233 static void Dalvik_dalvik_system_VMDebug_startMethodTracingDdmsImpl(const u4* args,
236 int bufferSize = args[0];
238 bool samplingEnabled = args[2];
239 int intervalUs = args[3];
240 dvmMethodTraceStart("[DDMS]", -1, bufferSize, flags, true, samplingEnabled,
246 * static void startMethodTracingFd(String traceFileName, FileDescriptor fd,
247 * int bufferSize, int flags)
249 * Start method trace profiling, sending results to a file descriptor.
251 static void Dalvik_dalvik_system_VMDebug_startMethodTracingFd(const u4* args,
254 StringObject* traceFileStr = (StringObject*) args[0];
255 Object* traceFd = (Object*) args[1];
256 int bufferSize = args[2];
259 int origFd = getFileDescriptor(traceFd);
263 int fd = dup(origFd);
265 dvmThrowExceptionFmt(gDvm.exRuntimeException,
266 "dup(%d) failed: %s", origFd, strerror(errno));
270 char* traceFileName = dvmCreateCstrFromString(traceFileStr);
271 if (traceFileName == NULL) {
275 dvmMethodTraceStart(traceFileName, fd, bufferSize, flags, false, false, 0);
281 * static void startMethodTracingFilename(String traceFileName, int bufferSize,
284 * Start method trace profiling, sending results to a file.
286 static void Dalvik_dalvik_system_VMDebug_startMethodTracingFilename(const u4* args,
289 StringObject* traceFileStr = (StringObject*) args[0];
290 int bufferSize = args[1];
293 char* traceFileName = dvmCreateCstrFromString(traceFileStr);
294 if (traceFileName == NULL) {
298 dvmMethodTraceStart(traceFileName, -1, bufferSize, flags, false, false, 0);
304 * static boolean isMethodTracingActive()
306 * Determine whether method tracing is currently active.
308 static void Dalvik_dalvik_system_VMDebug_isMethodTracingActive(const u4* args,
311 UNUSED_PARAMETER(args);
313 RETURN_BOOLEAN(dvmIsMethodTraceActive());
317 * static void stopMethodTracing()
319 * Stop method tracing.
321 static void Dalvik_dalvik_system_VMDebug_stopMethodTracing(const u4* args,
324 UNUSED_PARAMETER(args);
326 dvmMethodTraceStop();
331 * static void startEmulatorTracing()
333 * Start sending method trace info to the emulator.
335 static void Dalvik_dalvik_system_VMDebug_startEmulatorTracing(const u4* args,
338 UNUSED_PARAMETER(args);
340 dvmEmulatorTraceStart();
345 * static void stopEmulatorTracing()
347 * Start sending method trace info to the emulator.
349 static void Dalvik_dalvik_system_VMDebug_stopEmulatorTracing(const u4* args,
352 UNUSED_PARAMETER(args);
354 dvmEmulatorTraceStop();
359 * static boolean isDebuggerConnected()
361 * Returns "true" if a debugger is attached.
363 static void Dalvik_dalvik_system_VMDebug_isDebuggerConnected(const u4* args,
366 UNUSED_PARAMETER(args);
368 RETURN_BOOLEAN(dvmDbgIsDebuggerConnected());
372 * static boolean isDebuggingEnabled()
374 * Returns "true" if debugging is enabled.
376 static void Dalvik_dalvik_system_VMDebug_isDebuggingEnabled(const u4* args,
379 UNUSED_PARAMETER(args);
381 RETURN_BOOLEAN(gDvm.jdwpConfigured);
385 * static long lastDebuggerActivity()
387 * Returns the time, in msec, since we last had an interaction with the
388 * debugger (send or receive).
390 static void Dalvik_dalvik_system_VMDebug_lastDebuggerActivity(const u4* args,
393 UNUSED_PARAMETER(args);
395 RETURN_LONG(dvmDbgLastDebuggerActivity());
399 * static void startInstructionCounting()
401 static void Dalvik_dalvik_system_VMDebug_startInstructionCounting(const u4* args,
404 dvmStartInstructionCounting();
409 * static void stopInstructionCounting()
411 static void Dalvik_dalvik_system_VMDebug_stopInstructionCounting(const u4* args,
414 dvmStopInstructionCounting();
419 * static boolean getInstructionCount(int[] counts)
421 * Grab a copy of the global instruction count array.
423 * Since the instruction counts aren't synchronized, we use sched_yield
424 * to improve our chances of finishing without contention. (Only makes
425 * sense on a uniprocessor.)
427 static void Dalvik_dalvik_system_VMDebug_getInstructionCount(const u4* args,
430 ArrayObject* countArray = (ArrayObject*) args[0];
432 if (countArray != NULL) {
433 int* storage = (int*)(void*)countArray->contents;
434 u4 length = countArray->length;
437 * Ensure that we copy at most kNumPackedOpcodes
438 * elements, but no more than the length of the given array.
440 if (length > kNumPackedOpcodes) {
441 length = kNumPackedOpcodes;
445 memcpy(storage, gDvm.executedInstrCounts, length * sizeof(int));
452 * static boolean resetInstructionCount()
454 * Reset the instruction count array.
456 static void Dalvik_dalvik_system_VMDebug_resetInstructionCount(const u4* args,
460 memset(gDvm.executedInstrCounts, 0, kNumPackedOpcodes * sizeof(int));
465 * static void printLoadedClasses(int flags)
467 * Dump the list of loaded classes.
469 static void Dalvik_dalvik_system_VMDebug_printLoadedClasses(const u4* args,
474 dvmDumpAllClasses(flags);
480 * static int getLoadedClassCount()
482 * Return the number of loaded classes
484 static void Dalvik_dalvik_system_VMDebug_getLoadedClassCount(const u4* args,
489 UNUSED_PARAMETER(args);
491 count = dvmGetNumLoadedClasses();
497 * Returns the thread-specific CPU-time clock value for the current thread,
498 * or -1 if the feature isn't supported.
500 static void Dalvik_dalvik_system_VMDebug_threadCpuTimeNanos(const u4* args,
505 #ifdef HAVE_POSIX_CLOCKS
507 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &now);
508 result = (jlong) (now.tv_sec*1000000000LL + now.tv_nsec);
517 * static void dumpHprofData(String fileName, FileDescriptor fd)
519 * Cause "hprof" data to be dumped. We can throw an IOException if an
520 * error occurs during file handling.
522 static void Dalvik_dalvik_system_VMDebug_dumpHprofData(const u4* args,
525 StringObject* fileNameStr = (StringObject*) args[0];
526 Object* fileDescriptor = (Object*) args[1];
531 * Only one of these may be NULL.
533 if (fileNameStr == NULL && fileDescriptor == NULL) {
534 dvmThrowNullPointerException("fileName == null && fd == null");
538 if (fileNameStr != NULL) {
539 fileName = dvmCreateCstrFromString(fileNameStr);
540 if (fileName == NULL) {
541 /* unexpected -- malloc failure? */
542 dvmThrowRuntimeException("malloc failure?");
546 fileName = strdup("[fd]");
550 if (fileDescriptor != NULL) {
551 fd = getFileDescriptor(fileDescriptor);
558 result = hprofDumpHeap(fileName, fd, false);
562 /* ideally we'd throw something more specific based on actual failure */
563 dvmThrowRuntimeException(
564 "Failure during heap dump; check log output for details");
572 * static void dumpHprofDataDdms()
574 * Cause "hprof" data to be computed and sent directly to DDMS.
576 static void Dalvik_dalvik_system_VMDebug_dumpHprofDataDdms(const u4* args,
581 result = hprofDumpHeap("[DDMS]", -1, true);
584 /* ideally we'd throw something more specific based on actual failure */
585 dvmThrowRuntimeException(
586 "Failure during heap dump; check log output for details");
594 * static boolean cacheRegisterMap(String classAndMethodDescr)
596 * If the specified class is loaded, and the named method exists, ensure
597 * that the method's register map is ready for use. If the class/method
598 * cannot be found, nothing happens.
600 * This can improve the zygote's sharing of compressed register maps. Do
601 * this after class preloading.
603 * Returns true if the register map is cached and ready, either as a result
604 * of this call or earlier activity. Returns false if the class isn't loaded,
605 * if the method couldn't be found, or if the method has no register map.
607 * (Uncomment logs in dvmGetExpandedRegisterMap0() to gather stats.)
609 static void Dalvik_dalvik_system_VMDebug_cacheRegisterMap(const u4* args,
612 StringObject* classAndMethodDescStr = (StringObject*) args[0];
616 if (classAndMethodDescStr == NULL) {
617 dvmThrowNullPointerException("classAndMethodDesc == null");
621 char* classAndMethodDesc = NULL;
624 * Pick the string apart. We have a local copy, so just modify it
627 classAndMethodDesc = dvmCreateCstrFromString(classAndMethodDescStr);
629 char* methodName = strchr(classAndMethodDesc, '.');
630 if (methodName == NULL) {
631 dvmThrowRuntimeException("method name not found in string");
634 *methodName++ = '\0';
636 char* methodDescr = strchr(methodName, ':');
637 if (methodDescr == NULL) {
638 dvmThrowRuntimeException("method descriptor not found in string");
641 *methodDescr++ = '\0';
643 //ALOGD("GOT: %s %s %s", classAndMethodDesc, methodName, methodDescr);
646 * Find the class, but only if it's already loaded.
648 clazz = dvmLookupClass(classAndMethodDesc, NULL, false);
650 ALOGD("Class %s not found in bootstrap loader", classAndMethodDesc);
657 * Find the method, which could be virtual or direct, defined directly
660 if (methodName[0] == '<') {
662 * Constructor or class initializer. Only need to examine the
663 * "direct" list, and don't need to search up the class hierarchy.
665 method = dvmFindDirectMethodByDescriptor(clazz, methodName,
669 * Try both lists, and scan up the tree.
671 method = dvmFindVirtualMethodHierByDescriptor(clazz, methodName,
673 if (method == NULL) {
674 method = dvmFindDirectMethodHierByDescriptor(clazz, methodName,
679 if (method != NULL) {
681 * Got it. See if there's a register map here.
683 const RegisterMap* pMap;
684 pMap = dvmGetExpandedRegisterMap(method);
686 ALOGV("No map for %s.%s %s",
687 classAndMethodDesc, methodName, methodDescr);
689 ALOGV("Found map %s.%s %s",
690 classAndMethodDesc, methodName, methodDescr);
694 ALOGV("Unable to find %s.%s %s",
695 classAndMethodDesc, methodName, methodDescr);
699 free(classAndMethodDesc);
700 RETURN_BOOLEAN(result);
704 * static void dumpReferenceTables()
706 static void Dalvik_dalvik_system_VMDebug_dumpReferenceTables(const u4* args,
709 UNUSED_PARAMETER(args);
710 UNUSED_PARAMETER(pResult);
712 ALOGI("--- reference table dump ---");
713 dvmDumpJniReferenceTables();
714 // could dump thread's internalLocalRefTable, probably not useful
715 // ditto for thread's jniMonitorRefTable
721 * static void crash()
723 * Dump the current thread's interpreted stack and abort the VM. Useful
724 * for seeing both interpreted and native stack traces.
726 * (Might want to restrict this to debuggable processes as a security
727 * measure, or check SecurityManager.checkExit().)
729 static void Dalvik_dalvik_system_VMDebug_crash(const u4* args,
732 UNUSED_PARAMETER(args);
733 UNUSED_PARAMETER(pResult);
735 ALOGW("Crashing VM on request");
736 dvmDumpThread(dvmThreadSelf(), false);
741 * static void infopoint(int id)
743 * Provide a hook for gdb to hang to so that the VM can be stopped when
744 * user-tagged source locations are being executed.
746 static void Dalvik_dalvik_system_VMDebug_infopoint(const u4* args,
749 gDvm.nativeDebuggerActive = true;
751 ALOGD("VMDebug infopoint %d hit", args[0]);
753 gDvm.nativeDebuggerActive = false;
757 static void Dalvik_dalvik_system_VMDebug_countInstancesOfClass(const u4* args,
760 ClassObject* clazz = (ClassObject*)args[0];
761 bool countAssignable = args[1];
765 if (countAssignable) {
766 size_t count = dvmCountAssignableInstancesOfClass(clazz);
767 RETURN_LONG((long long)count);
769 size_t count = dvmCountInstancesOfClass(clazz);
770 RETURN_LONG((long long)count);
775 * public static native void getHeapSpaceStats(long[] data)
777 static void Dalvik_dalvik_system_VMDebug_getHeapSpaceStats(const u4* args,
780 ArrayObject* dataArray = (ArrayObject*) args[0];
782 if (dataArray == NULL || dataArray->length < 6) {
786 jlong* arr = (jlong*)(void*)dataArray->contents;
789 size_t per_heap_allocated[2];
790 size_t per_heap_size[2];
791 memset(per_heap_allocated, 0, sizeof(per_heap_allocated));
792 memset(per_heap_size, 0, sizeof(per_heap_size));
793 dvmHeapSourceGetValue(HS_BYTES_ALLOCATED, (size_t*) &per_heap_allocated, 2);
794 dvmHeapSourceGetValue(HS_FOOTPRINT, (size_t*) &per_heap_size, 2);
795 jlong heapSize = per_heap_size[0];
796 jlong heapUsed = per_heap_allocated[0];
797 jlong heapFree = heapSize - heapUsed;
798 jlong zygoteSize = per_heap_size[1];
799 jlong zygoteUsed = per_heap_allocated[1];
800 jlong zygoteFree = zygoteSize - zygoteUsed;
804 arr[j++] = zygoteSize;
805 arr[j++] = zygoteUsed;
806 arr[j++] = zygoteFree;
811 const DalvikNativeMethod dvm_dalvik_system_VMDebug[] = {
812 { "getVmFeatureList", "()[Ljava/lang/String;",
813 Dalvik_dalvik_system_VMDebug_getVmFeatureList },
814 { "getAllocCount", "(I)I",
815 Dalvik_dalvik_system_VMDebug_getAllocCount },
816 { "getHeapSpaceStats", "([J)V",
817 Dalvik_dalvik_system_VMDebug_getHeapSpaceStats },
818 { "resetAllocCount", "(I)V",
819 Dalvik_dalvik_system_VMDebug_resetAllocCount },
820 { "startAllocCounting", "()V",
821 Dalvik_dalvik_system_VMDebug_startAllocCounting },
822 { "stopAllocCounting", "()V",
823 Dalvik_dalvik_system_VMDebug_stopAllocCounting },
824 { "startMethodTracingDdmsImpl", "(IIZI)V",
825 Dalvik_dalvik_system_VMDebug_startMethodTracingDdmsImpl },
826 { "startMethodTracingFd", "(Ljava/lang/String;Ljava/io/FileDescriptor;II)V",
827 Dalvik_dalvik_system_VMDebug_startMethodTracingFd },
828 { "startMethodTracingFilename", "(Ljava/lang/String;II)V",
829 Dalvik_dalvik_system_VMDebug_startMethodTracingFilename },
830 { "isMethodTracingActive", "()Z",
831 Dalvik_dalvik_system_VMDebug_isMethodTracingActive },
832 { "stopMethodTracing", "()V",
833 Dalvik_dalvik_system_VMDebug_stopMethodTracing },
834 { "startEmulatorTracing", "()V",
835 Dalvik_dalvik_system_VMDebug_startEmulatorTracing },
836 { "stopEmulatorTracing", "()V",
837 Dalvik_dalvik_system_VMDebug_stopEmulatorTracing },
838 { "startInstructionCounting", "()V",
839 Dalvik_dalvik_system_VMDebug_startInstructionCounting },
840 { "stopInstructionCounting", "()V",
841 Dalvik_dalvik_system_VMDebug_stopInstructionCounting },
842 { "resetInstructionCount", "()V",
843 Dalvik_dalvik_system_VMDebug_resetInstructionCount },
844 { "getInstructionCount", "([I)V",
845 Dalvik_dalvik_system_VMDebug_getInstructionCount },
846 { "isDebuggerConnected", "()Z",
847 Dalvik_dalvik_system_VMDebug_isDebuggerConnected },
848 { "isDebuggingEnabled", "()Z",
849 Dalvik_dalvik_system_VMDebug_isDebuggingEnabled },
850 { "lastDebuggerActivity", "()J",
851 Dalvik_dalvik_system_VMDebug_lastDebuggerActivity },
852 { "printLoadedClasses", "(I)V",
853 Dalvik_dalvik_system_VMDebug_printLoadedClasses },
854 { "getLoadedClassCount", "()I",
855 Dalvik_dalvik_system_VMDebug_getLoadedClassCount },
856 { "threadCpuTimeNanos", "()J",
857 Dalvik_dalvik_system_VMDebug_threadCpuTimeNanos },
858 { "dumpHprofData", "(Ljava/lang/String;Ljava/io/FileDescriptor;)V",
859 Dalvik_dalvik_system_VMDebug_dumpHprofData },
860 { "dumpHprofDataDdms", "()V",
861 Dalvik_dalvik_system_VMDebug_dumpHprofDataDdms },
862 { "cacheRegisterMap", "(Ljava/lang/String;)Z",
863 Dalvik_dalvik_system_VMDebug_cacheRegisterMap },
864 { "dumpReferenceTables", "()V",
865 Dalvik_dalvik_system_VMDebug_dumpReferenceTables },
867 Dalvik_dalvik_system_VMDebug_crash },
868 { "infopoint", "(I)V",
869 Dalvik_dalvik_system_VMDebug_infopoint },
870 { "countInstancesOfClass", "(Ljava/lang/Class;Z)J",
871 Dalvik_dalvik_system_VMDebug_countInstancesOfClass },
872 { NULL, NULL, NULL },