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

Method flushJfr

src/profiler.cpp:1108–1122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1106}
1107
1108Error Profiler::flushJfr() {
1109 MutexLocker ml(_state_lock);
1110 if (_state != RUNNING) {
1111 return Error("Profiler is not active");
1112 }
1113
1114 updateJavaThreadNames();
1115 updateNativeThreadNames();
1116
1117 lockAll();
1118 _jfr.flush();
1119 unlockAll();
1120
1121 return Error::OK;
1122}
1123
1124Error Profiler::dump(Writer& out, Arguments& args) {
1125 MutexLocker ml(_state_lock);

Callers

nothing calls this directly

Calls 2

ErrorClass · 0.85
flushMethod · 0.45

Tested by

no test coverage detected