Skip to contentSkip to conversation

pybootchart: Fix extents handling to account for cpu/io/mem pressure changes

PATCH New Richard Purdie 1 participant 1 message Mar 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pybootchart: Fix extents handling to account for cpu/io/mem pressure changes

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.

---
 scripts/pybootchartgui/pybootchartgui/draw.py | 6 ++++++
 1 file changed, 6 insertions(+)
scripts/pybootchartgui/pybootchartgui/draw.py +6 -0
index 43263614263..6d445aad4f4 100644
@@ -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:
Signature · 1 line
2.38.1