diff mbox series

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

Message ID 20230315144347.4125824-1-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit cc8cef69e717e08f80d10f775f0fffc644267b59
Headers show
Series pybootchart: Fix extents handling to account for cpu/io/mem pressure changes | expand

Commit Message

Richard Purdie March 15, 2023, 2:43 p.m. UTC
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 | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index 43263614263..6d445aad4f4 100644
--- a/scripts/pybootchartgui/pybootchartgui/draw.py
+++ b/scripts/pybootchartgui/pybootchartgui/draw.py
@@ -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: