pybootchartgui: account for network stats when calculating extents

We could take into account the network device statistics when calculating
the size of the image, otherwise charts will be truncated.

(From OE-Core rev: 52806c2555d02d4a12e7419520a2aba05f7aaa06)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton 2025-07-23 15:55:07 +01:00 committed by Richard Purdie
parent ac05e72f87
commit 9eb9f13198

View File

@ -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):