| 1333 | } |
| 1334 | |
| 1335 | bool 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 | |
| 1351 | Error FlightRecorder::startMasterRecording(Arguments& args, const char* filename) { |
| 1352 | JNIEnv* env = VM::jni(); |
no test coverage detected