| 1185 | } |
| 1186 | |
| 1187 | void 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 | |
| 1195 | void Profiler::lockAll() { |
| 1196 | for (int i = 0; i < CONCURRENCY_LEVEL; i++) _locks[i].lock(); |
nothing calls this directly
no outgoing calls
no test coverage detected