summaryrefslogtreecommitdiffstats
path: root/scripts/pybootchartgui
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-15 14:42:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-16 08:13:12 +0000
commitf26158603b6b5af7c522980ec1292ded6fe11c13 (patch)
treea77da9f82837fd3e73d19adf60c0c34ab421cd68 /scripts/pybootchartgui
parent539ec94f178c2adc47f5a80287e832365514a9b6 (diff)
downloadpoky-f26158603b6b5af7c522980ec1292ded6fe11c13.tar.gz
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. (From OE-Core rev: cc8cef69e717e08f80d10f775f0fffc644267b59) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/pybootchartgui')
-rw-r--r--scripts/pybootchartgui/pybootchartgui/draw.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index 4326361426..6d445aad4f 100644
--- a/scripts/pybootchartgui/pybootchartgui/draw.py
+++ b/scripts/pybootchartgui/pybootchartgui/draw.py
@@ -356,6 +356,12 @@ def extents(options, xscale, trace):
356 h += 30 + bar_h 356 h += 30 + bar_h
357 if trace.disk_stats: 357 if trace.disk_stats:
358 h += 30 + bar_h 358 h += 30 + bar_h
359 if trace.cpu_pressure:
360 h += 30 + bar_h
361 if trace.io_pressure:
362 h += 30 + bar_h
363 if trace.mem_pressure:
364 h += 30 + bar_h
359 if trace.monitor_disk: 365 if trace.monitor_disk:
360 h += 30 + bar_h 366 h += 30 + bar_h
361 if trace.mem_stats: 367 if trace.mem_stats: