3 ms·
Flamegraphs are good for CPU profiling (as far as I've used them), I've used them to debug an issue when one of our programs was "consistently" consuming high C
by LaFolle 9y ago
Flamegraphs are good for CPU profiling (as far as I've used them), I've used them to debug an issue when one of our programs was "consistently" consuming high CPU. As the "stack" was mostly on CPU, during sampling, this stack was picked up most of the time, hence in flamegraphs, it was represented with a relatively longer bar.
But do they help to debug issues related to CPU spikes? I have my reservations because they are generated using sampling, and flamegraphs won't give a clear insight into who is causing the spikes.
- LaFolle 9y agoOne way to solve this I can think of is, if cpu spikes are deterministic, then we can take 2 profiles: 1. span consisting of no spikes 2. span consisting of at least 1 spike And then "diff" them to get stack causing spikes. Is this the correct way? In general, how do people solve CPU spikes issue?