Why is the reason that the flame graph in go pprof rotated 180 degrees?

202 views
Skip to first unread message

fliter

unread,
Jun 12, 2023, 8:26:30 AM6/12/23
to golang-nuts
Why is the  reason that the flame graph in go pprof rotated 180 degrees?

The reason I can think of is that it seems that this conforms to the func calling order from top to bottom.

Thanks for anyone's discussion and replies

a2800276

unread,
Jun 13, 2023, 5:59:38 AM6/13/23
to golang-nuts
180 degrees in respect to what? ;)
I'd argue callgraphs have no "natural" orientation, top to bottom is as good as bottom to top or left to right (right to left feels off to me, but I read left to right, so I assume that's just a matter of familiarity)

Vladimir Varankin

unread,
Jun 14, 2023, 4:07:59 AM6/14/23
to golang-nuts
Hey there,

In this issue, back then (https://github.com/google/pprof/issues/359), I linked my interpretation for the reasoning to switch from flame graph to "icicle graph". Just as you wrote, in some (many) cases, the investigations starts from the bottom of the graph, forcing a user to scroll down, when the graph was higher then their screen height.

Sven Anderson

unread,
Jun 14, 2023, 8:03:46 AM6/14/23
to a2800276, golang-nuts
a2800276 <a280...@gmail.com> schrieb am Di. 13. Juni 2023 um 11:59:
180 degrees in respect to what? ;)

In respect to a flame. ;-)

fliter

unread,
Jun 17, 2023, 9:07:00 PM6/17/23
to golang-nuts
Thanks  everyone!
Reply all
Reply to author
Forward
0 new messages