Home | History | Annotate | Download | only in vm

Lines Matching refs:Method

18  * Android's method call profiling goodies.
56 * u4 method ID | method action
61 * u4 method ID | method action
66 * u4 method ID | method action
179 * Initialize "dmtrace" method profiling.
198 * we can put interpreted method information. This allows interpreted
305 Method* meth;
353 * Start method tracing. Method tracing is global to the VM (i.e. we
484 Method* method;
489 method = (Method*) METHOD_ID(methodVal);
491 method->inProfile = true;
539 * Returns "true" if method tracing is currently active.
548 * Stop method tracing. We write the buffer to disk and generate a key
591 * the data pointer but not written the method value. It's possible
598 * method pointer, we cut things off early. (If we don't, we'll fail
602 * after it has partially written the method pointer, in which case
636 LOGW("WARNING: a debugger is active; method-tracing results "
674 fprintf(state->traceFile, "num-method-calls=%d\n",
728 * We just did something with a method. Emit a record.
733 void dvmMethodTraceAdd(Thread* self, const Method* method, int action)
740 assert(method != NULL);
770 //assert(METHOD_ACTION((u4) method) == 0);
772 methodVal = METHOD_COMBINE((u4) method, action);
809 void dvmFastMethodTraceEnter(const Method* method, Thread* self)
812 dvmMethodTraceAdd(self, method, METHOD_TRACE_ENTER);
818 * JIT'ed code for methods. The about-to-return callee method can be
819 * retrieved from self->interpSave.method.
824 dvmMethodTraceAdd(self, self->interpSave.method,
831 * JIT'ed code for JNI methods. The about-to-return JNI callee method is passed
834 void dvmFastNativeMethodTraceExit(const Method* method, Thread* self)
837 dvmMethodTraceAdd(self, method, METHOD_TRACE_EXIT);
842 * We just did something with a method. Emit a record by setting a value
845 void dvmEmitEmulatorTrace(const Method* method, int action)
855 * because we do a "late trap" to a native method to generate the
856 * abstract method exception.)
858 if (dvmIsAbstractMethod(method))
864 if (dvmIsNativeMethod(method)) {
872 * is a native method.
882 addr = (u4) method->nativeFunc;
886 * is offset from the start of the base DEX header. Method.insns
896 assert(method->insns != NULL);
897 const DexOptHeader* pOptHdr = method->clazz->pDvmDex->pDexFile->pOptHeader;
898 addr = (u4) method->insns - pOptHdr->dexOffset;
903 pMagic+action, addr, method->clazz->descriptor, method->name);
945 LOGD("--- emulator method traces enabled");
961 LOGD("--- emulator method traces disabled");