]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
pybootchartgui: account for network stats when calculating extents
authorRoss Burton <ross.burton@arm.com>
Wed, 23 Jul 2025 14:55:07 +0000 (15:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Jul 2025 09:47:27 +0000 (10:47 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/pybootchartgui/pybootchartgui/draw.py

index 09253ea18525384180a434677eaa76e113841dd5..4d76ce6e8e11e7174dddce8a556dd39256b8740c 100644 (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):