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

Method signalHandler

src/cpuEngine.cpp:114–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void CpuEngine::signalHandler(int signo, siginfo_t* siginfo, void* ucontext) {
115 if (!_enabled) return;
116
117 ExecutionEvent event(TSC::ticks());
118 // Count missed samples when estimating total CPU time
119 u64 total_cpu_time = _count_overrun ? u64(_interval) * (1 + OS::overrun(siginfo)) : u64(_interval);
120 Profiler::instance()->recordSample(ucontext, total_cpu_time, EXECUTION_SAMPLE, &event);
121}
122
123void CpuEngine::signalHandlerJ9(int signo, siginfo_t* siginfo, void* ucontext) {
124 if (!_enabled) return;

Callers

nothing calls this directly

Calls 1

recordSampleMethod · 0.80

Tested by

no test coverage detected