| 112 | } |
| 113 | |
| 114 | void 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 | |
| 123 | void CpuEngine::signalHandlerJ9(int signo, siginfo_t* siginfo, void* ucontext) { |
| 124 | if (!_enabled) return; |
nothing calls this directly
no test coverage detected