Re:Netflix's async sendfile now in FreeBSD-current
by vive-la-liberte on Friday January 08, 2016 @10:04PM
(#10869899)
Slide 27/36, aka. slide 18/23, shows a type of graph which I have also seen in the Google Chrome Dev Tools as well as a couple of other places. Someone told me once the name of that kind graph but I've forgotten what it was. I've never learned how to read that kind of graph. So, if someone would be so kind, please tell me what it's called and how to read it.
[ Parent
| on HN ]
Re:Netflix's async sendfile now in FreeBSD-current
by wging on Friday January 08, 2016 @10:11PM
(#10869922)
It's a flame graph or flame chart. I found this video explaining how to use them: https://www.youtube.com/watch?v=g0g4ML4nhPg
I think the basic idea is: say you have some code like this.
function a() { // 6 ms b(); // 3 ms c(); // 3 ms } Then you might have a flame chart that looks like this:
[-b-][-c]
[---a---]
Essentially you're decomposing the time we spend in a() into its constituent pieces b() and c().
Re:Netflix's async sendfile now in FreeBSD-current
by brendangregg on Saturday January 09, 2016 @02:44AM
(#10870467)
essentially, yes, but:
flame graphs: x-axis is sample population (or event time), alphabetical sort on function names to maximize merging
flame charts: x-axis is the passage of time
Re:Netflix's async sendfile now in FreeBSD-current
by bithive123 on Friday January 08, 2016 @10:06PM
(#10869906)
Re:Netflix's async sendfile now in FreeBSD-current
by tomjakubowski on Saturday January 09, 2016 @07:42AM
(#10871048)
Great resource! Thank you.
Re:Netflix's async sendfile now in FreeBSD-current
by vive-la-liberte on Friday January 08, 2016 @10:07PM
(#10869908)
Thanks :)
Re:Netflix's async sendfile now in FreeBSD-current
by revelation on Friday January 08, 2016 @10:07PM
(#10869910)
They call it a flame graph and what you are seeing are call stacks. X axis is time, Y axis is call stack depth.
The very bottom layer is the function you are analyzing, ever layer above is a function called by the one directly below it.
Re:Netflix's async sendfile now in FreeBSD-current
by jberryman on Friday January 08, 2016 @10:13PM
(#10869925)
> X axis is time
That's not correct from what I'm reading.
Re:Netflix's async sendfile now in FreeBSD-current
by revelation on Friday January 08, 2016 @10:19PM
(#10869937)
If you are sampling the stack at equidistant points in time (or, sampling theorem and all, fast enough) and then determine the width on the basis of "seen in fraction of samples", that's pretty close to time. (timespan if you want)
Re:Netflix's async sendfile now in FreeBSD-current
by michael_h on Friday January 08, 2016 @10:15PM
(#10869930)
The span on the x-axis is the amount of time spent in a function, but not the passage of time left-to-right.
Re:Netflix's async sendfile now in FreeBSD-current
by michael_h on Friday January 08, 2016 @10:18PM
(#10869935)
I down voted you because I'm on a phone and my thumb is a bit bigger than the voting triangles - apologies.
Re:Netflix's async sendfile now in FreeBSD-current
by vive-la-liberte on Friday January 08, 2016 @10:09PM
(#10869914)
Thank you. Very succinct explanation. I like that.