3 ms·
I suspect you're right about overhead. 10us seems much more aggressive than even the author is actually suggesting, though - the motivating example was a servic
by akshayshah 5y ago
I suspect you're right about overhead. 10us seems much more aggressive than even the author is actually suggesting, though - the motivating example was a service with latencies in the 10s of ms, so sampling every few ms would be sufficient.
Also, if anyone reading isn't familiar with sampling profilers, Felix gave a great talk explaining them: https://github.com/felixge/talks/blob/master/fgprof/ https://github.com/felixge/talks/blob/master/fgprof/
- felixge 5y agoYeah, decent sampling for requests that last 10s of ms seems absolutely feasible with this approach, unlike the current setitimer(2) stuff. I'm really looking forward to taking it for a spin soon and see how far the sampling rate can be pushed without introducing noticeable overhead in practice!