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

Method logStats

src/profiler.cpp:1187–1193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185}
1186
1187void Profiler::logStats() {
1188 if (!_features.stats) return;
1189
1190 u64 stacks = _total_samples - _failures[-ticks_skipped];
1191 u64 avg_time = stacks == 0 ? 0 : _total_stack_walk_time / stacks;
1192 Log::info("Collected %llu stacks, avg time = %llu ns", stacks, avg_time);
1193}
1194
1195void Profiler::lockAll() {
1196 for (int i = 0; i < CONCURRENCY_LEVEL; i++) _locks[i].lock();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected