Home | History | Annotate | Download | only in vm

Lines Matching refs:gDvm

87     return gDvm.profilerClockSource != kProfilerClockSourceWall;
98 return gDvm.profilerClockSource != kProfilerClockSourceThreadCpu;
285 while (gDvm.methodTrace.traceEnabled) {
289 for (Thread *thread = gDvm.threadList; thread != NULL; thread = thread->next) {
309 memset(&gDvm.methodTrace, 0, sizeof(gDvm.methodTrace));
310 dvmInitMutex(&gDvm.methodTrace.startStopLock);
311 pthread_cond_init(&gDvm.methodTrace.threadExitCond, NULL);
318 gDvm.executedInstrCounts = (int*) calloc(kNumPackedOpcodes, sizeof(int));
319 if (gDvm.executedInstrCounts == NULL)
335 gDvm.emulatorTracePage = mmap(0, SYSTEM_PAGE_SIZE, PROT_READ|PROT_WRITE,
338 if (gDvm.emulatorTracePage == MAP_FAILED) {
340 gDvm.emulatorTracePage = NULL;
342 *(u4*) gDvm.emulatorTracePage = 0;
346 assert(gDvm.emulatorTracePage == NULL);
358 if (gDvm.emulatorTracePage != NULL)
359 munmap(gDvm.emulatorTracePage, SYSTEM_PAGE_SIZE);
361 free(gDvm.executedInstrCounts);
373 oldValue = gDvm.activeProfilers;
380 &gDvm.activeProfilers) != 0);
405 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) {
420 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) {
432 for (Thread* thread = gDvm.threadList; thread != NULL; thread = thread->next) {
489 dvmHashTableLock(gDvm.loadedClasses);
490 dvmHashForeach(gDvm.loadedClasses, dumpMarkedMethods, (void*) fp);
491 dvmHashTableUnlock(gDvm.loadedClasses);
507 MethodTraceState* state = &gDvm.methodTrace;
541 dvmThrowExceptionFmt(gDvm.exRuntimeException,
635 u1* ptr = gDvm.methodTrace.buf + TRACE_HEADER_LEN;
636 u1* end = gDvm.methodTrace.buf + endOffset;
637 size_t recordSize = gDvm.methodTrace.recordSize;
698 const MethodTraceState* state = &gDvm.methodTrace;
714 MethodTraceState* state = &gDvm.methodTrace;
801 if (gDvm.debuggerActive) {
846 gDvm.allocProf.allocCount);
848 gDvm.allocProf.allocSize);
850 gDvm.allocProf.gcCount);
877 dvmThrowExceptionFmt(gDvm.exRuntimeException,
922 *wallClockDiff = getWallTimeInUsec() - gDvm.methodTrace.startWhen;
935 MethodTraceState* state = &gDvm.methodTrace;
1055 u4* pMagic = (u4*) gDvm.emulatorTracePage;
1107 TRACE_METHOD_ENTER(dvmThreadSelf(), gDvm.methodTraceGcMethod);
1111 TRACE_METHOD_EXIT(dvmThreadSelf(), gDvm.methodTraceGcMethod);
1119 TRACE_METHOD_ENTER(dvmThreadSelf(), gDvm.methodTraceClassPrepMethod);
1123 TRACE_METHOD_EXIT(dvmThreadSelf(), gDvm.methodTraceClassPrepMethod);
1133 if (gDvm.emulatorTracePage == NULL)
1137 gDvm.emulatorTraceEnableCount++;
1138 if (gDvm.emulatorTraceEnableCount == 1)
1148 if (gDvm.emulatorTraceEnableCount == 0) {
1153 gDvm.emulatorTraceEnableCount--;
1154 if (gDvm.emulatorTraceEnableCount == 0)
1157 (gDvm.emulatorTraceEnableCount != 0));
1167 gDvm.instructionCountEnableCount++;
1176 if (gDvm.instructionCountEnableCount == 0) {
1180 gDvm.instructionCountEnableCount--;
1182 (gDvm.instructionCountEnableCount != 0));
1192 gDvm.allocProf.enabled = true;
1200 gDvm.allocProf.enabled = false;