diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-15 14:42:38 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-03-21 06:42:25 -1000 |
commit | abbeea66297cfaf77bca9550400be37b39486b57 (patch) | |
tree | 98d629a9c26082adb047f9e67bcd528ef0d09ccd | |
parent | ea87507b74effff0521e72c6484e7d6107e5786e (diff) | |
download | openembedded-core-abbeea66297cfaf77bca9550400be37b39486b57.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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cc8cef69e717e08f80d10f775f0fffc644267b59)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/draw.py | 6 |
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): 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: |