]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
pybootchart: Fix extents handling to account for cpu/io/mem pressure changes
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Mar 2023 14:42:38 +0000 (14:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Mar 2023 08:08:12 +0000 (08:08 +0000)
The previous addition of pressure values to the chart didn't fix the extents
function which meant the bottom of the chart was cut off. Fix that.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/pybootchartgui/pybootchartgui/draw.py

index 4326361426391a4bd1a5553381df9a4e903f1fac..6d445aad4f40d2dbf83a727aadf3eed85cfcef6e 100644 (file)
@@ -356,6 +356,12 @@ def extents(options, xscale, trace):
             h += 30 + bar_h
         if trace.disk_stats:
             h += 30 + bar_h
+        if trace.cpu_pressure:
+            h += 30 + bar_h
+        if trace.io_pressure:
+            h += 30 + bar_h
+        if trace.mem_pressure:
+            h += 30 + bar_h
         if trace.monitor_disk:
             h += 30 + bar_h
         if trace.mem_stats: