google/pprof

Canvas size related to initial size of a graph, should use the full space

hzeller opened this issue · 0 comments

Please answer these questions before submitting your issue. Thanks!

What version of pprof are you using?

github head.

What operating system and processor architecture are you using?

x86_64
Relevant for this issue: Webbrowser Chromium 122.0.6261.69

What did you do?

Running pprof with --http option to get the web UI

The UI opens with the call graph, which looks nice and appears to be using the full available browser window as canvas:

a

... however, when zooming, it is revealed that the canvas was, in fact, sized after the original aspect ratio of the overview graph. You see in this zoomed-in view of the graph, that the bottom is exactly cut at the border of the original overview canvas:

b

What I would like to see

The canvas should fill the available space in the window, even if it is not fully needed in the vertical range initially ... after zooming it certainly is.