Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e01fbf7 authored by Ben Cheng's avatar Ben Cheng
Browse files

Add an option to enable JIT trace profiling for app_process.

parent 6a535849
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -746,6 +746,15 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
        opt.optionString = "-Xincludeselectedmethod";
        mOptions.add(opt);
    }

    /*
     * Enable profile collection on JIT'ed code.
     */
    property_get("dalvik.vm.jit.profile", propBuf, "");
    if (strlen(propBuf) > 0) {
        opt.optionString = "-Xjitprofile";
        mOptions.add(opt);
    }
#endif

    if (executionMode == kEMIntPortable) {