summaryrefslogtreecommitdiffstats
path: root/scripts
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-25 23:00:14 +0000
commitd2072e8b57e4a27d41da4e76a3562297999e09b8 (patch)
treecbacb200f1cb9bd738c7c0e60a469f54b0ca239e /scripts
parent8937564eac31d83a27dd547ee02549d40c205c38 (diff)
downloadpoky-d2072e8b57e4a27d41da4e76a3562297999e09b8.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: abbeea66297cfaf77bca9550400be37b39486b57) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit cc8cef69e717e08f80d10f775f0fffc644267b59) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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: