Message ID | 20250723145507.584335-2-ross.burton@arm.com |
---|---|
State | New |
Headers | show |
Series | [1/2] pybootchartgui: mark a regex as a raw string | expand |
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index 09253ea1852..4d76ce6e8e1 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py @@ -371,6 +371,8 @@ def extents(options, xscale, trace): h += 30 + bar_h if trace.mem_stats: h += meminfo_bar_h + if trace.net_stats: + h += (30 + bar_h) * len(trace.net_stats) # Allow for width of process legend and offset if w < (720 + off_x):
We could take into account the network device statistics when calculating the size of the image, otherwise charts will be truncated. Signed-off-by: Ross Burton <ross.burton@arm.com> --- scripts/pybootchartgui/pybootchartgui/draw.py | 2 ++ 1 file changed, 2 insertions(+)