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

Method usedMemory

src/flightRecorder.cpp:1325–1333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1323}
1324
1325size_t FlightRecorder::usedMemory() {
1326 size_t bytes = 0;
1327 if (_rec != NULL) {
1328 _rec_lock.lock();
1329 bytes = _rec->usedMemory();
1330 _rec_lock.unlock();
1331 }
1332 return bytes;
1333}
1334
1335bool FlightRecorder::timerTick(u64 wall_time, u32 gc_id) {
1336 if (!_rec_lock.tryLockShared()) {

Callers 1

usedMemoryMethod · 0.45

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected