Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you only had to look at a specific position or color in the graph, then a graph wouldn’t be needed at all. The offending function would just be printed.

But the flamegraph can’t color the offending function, or show it in a specific position, because what the offending function is depends on the context of what the program is trying to do and what the expected CPU usage for each function is. That’s information only you have.

So you only need to look at wide chunks and see if it’s expected for them to take so much share of the execution time or not, and if they can be optimized.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: