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

Method flush

src/flightRecorder.cpp:1317–1323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1315}
1316
1317void FlightRecorder::flush() {
1318 if (_rec != NULL) {
1319 _rec_lock.lock();
1320 _rec->switchChunk();
1321 _rec_lock.unlock();
1322 }
1323}
1324
1325size_t FlightRecorder::usedMemory() {
1326 size_t bytes = 0;

Callers 1

recordLogMethod · 0.45

Calls 3

switchChunkMethod · 0.80
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected