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

Method timerTick

src/flightRecorder.cpp:1335–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1333}
1334
1335bool FlightRecorder::timerTick(u64 wall_time, u32 gc_id) {
1336 if (!_rec_lock.tryLockShared()) {
1337 // No active recording
1338 return false;
1339 }
1340
1341 _rec->cpuMonitorCycle();
1342 _rec->heapMonitorCycle(gc_id);
1343 _rec->processMonitorCycle(wall_time);
1344
1345 bool need_switch_chunk = _rec->needSwitchChunk(wall_time);
1346
1347 _rec_lock.unlockShared();
1348 return need_switch_chunk;
1349}
1350
1351Error FlightRecorder::startMasterRecording(Arguments& args, const char* filename) {
1352 JNIEnv* env = VM::jni();

Callers 1

timerLoopMethod · 0.80

Calls 6

tryLockSharedMethod · 0.80
cpuMonitorCycleMethod · 0.80
heapMonitorCycleMethod · 0.80
processMonitorCycleMethod · 0.80
needSwitchChunkMethod · 0.80
unlockSharedMethod · 0.80

Tested by

no test coverage detected