MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / activeEngine

Method activeEngine

src/profiler.cpp:786–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786Engine* Profiler::activeEngine() {
787 switch (_event_mask) {
788 case EM_ALLOC:
789 return _alloc_engine;
790 case EM_LOCK:
791 return &lock_tracer;
792 case EM_WALL:
793 return &wall_clock;
794 case EM_NATIVEMEM:
795 return &malloc_tracer;
796 case EM_NATIVELOCK:
797 return &native_lock_tracer;
798 case EM_METHOD_TRACE:
799 return &instrument;
800 default:
801 return _engine;
802 }
803}
804
805Error Profiler::checkJvmCapabilities() {
806 if (VM::loaded()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected