diff options
author | Ross Burton <ross.burton@arm.com> | 2025-07-23 15:55:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-28 14:51:50 +0100 |
commit | 9eb9f13198ee2eeb189d16ba56d8a6be58c4fe40 (patch) | |
tree | 6b3cc8b72e39bf4bfb61ebe484a1667497813996 /scripts | |
parent | ac05e72f870d4a5085603feb5a9b51f3eea6ab4c (diff) | |
download | poky-9eb9f13198ee2eeb189d16ba56d8a6be58c4fe40.tar.gz |
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/draw.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index 09253ea185..4d76ce6e8e 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py | |||
@@ -371,6 +371,8 @@ def extents(options, xscale, trace): | |||
371 | h += 30 + bar_h | 371 | h += 30 + bar_h |
372 | if trace.mem_stats: | 372 | if trace.mem_stats: |
373 | h += meminfo_bar_h | 373 | h += meminfo_bar_h |
374 | if trace.net_stats: | ||
375 | h += (30 + bar_h) * len(trace.net_stats) | ||
374 | 376 | ||
375 | # Allow for width of process legend and offset | 377 | # Allow for width of process legend and offset |
376 | if w < (720 + off_x): | 378 | if w < (720 + off_x): |