diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2022-08-02 21:11:26 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-04 16:27:25 +0100 |
commit | 6e756b150a24609ae41e42e607b7faed80d3eb54 (patch) | |
tree | 020a7981f2697c61ca748b084a5b17f9da6379c0 /scripts/pybootchartgui/pybootchartgui/parsing.py | |
parent | 096f688ec0d9cd5c9a54644bdf82aac0aca959a5 (diff) | |
download | poky-6e756b150a24609ae41e42e607b7faed80d3eb54.tar.gz |
pybootchartgui: render memory pressure as well
* memory pressure is already collected in buildstats, render it as well
when available
(From OE-Core rev: 42010d0812246a418f30b4f1d9fbd3f374a3bbe9)
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/pybootchartgui/pybootchartgui/parsing.py')
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/parsing.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/parsing.py b/scripts/pybootchartgui/pybootchartgui/parsing.py index 004d6fb953..362d5153e8 100644 --- a/scripts/pybootchartgui/pybootchartgui/parsing.py +++ b/scripts/pybootchartgui/pybootchartgui/parsing.py | |||
@@ -51,6 +51,7 @@ class Trace: | |||
51 | self.monitor_disk = None | 51 | self.monitor_disk = None |
52 | self.cpu_pressure = [] | 52 | self.cpu_pressure = [] |
53 | self.io_pressure = [] | 53 | self.io_pressure = [] |
54 | self.mem_pressure = [] | ||
54 | self.times = [] # Always empty, but expected by draw.py when drawing system charts. | 55 | self.times = [] # Always empty, but expected by draw.py when drawing system charts. |
55 | 56 | ||
56 | if len(paths): | 57 | if len(paths): |
@@ -564,6 +565,8 @@ def _parse_pressure_logs(file, filename): | |||
564 | pressure_stats = [] | 565 | pressure_stats = [] |
565 | if filename == "cpu.log": | 566 | if filename == "cpu.log": |
566 | SamplingClass = CPUPressureSample | 567 | SamplingClass = CPUPressureSample |
568 | elif filename == "memory.log": | ||
569 | SamplingClass = MemPressureSample | ||
567 | else: | 570 | else: |
568 | SamplingClass = IOPressureSample | 571 | SamplingClass = IOPressureSample |
569 | for time, lines in _parse_timed_blocks(file): | 572 | for time, lines in _parse_timed_blocks(file): |
@@ -769,6 +772,8 @@ def _do_parse(writer, state, filename, file): | |||
769 | state.cpu_pressure = _parse_pressure_logs(file, name) | 772 | state.cpu_pressure = _parse_pressure_logs(file, name) |
770 | elif name == "io.log": | 773 | elif name == "io.log": |
771 | state.io_pressure = _parse_pressure_logs(file, name) | 774 | state.io_pressure = _parse_pressure_logs(file, name) |
775 | elif name == "memory.log": | ||
776 | state.mem_pressure = _parse_pressure_logs(file, name) | ||
772 | elif not filename.endswith('.log'): | 777 | elif not filename.endswith('.log'): |
773 | _parse_bitbake_buildstats(writer, state, filename, file) | 778 | _parse_bitbake_buildstats(writer, state, filename, file) |
774 | t2 = time.process_time() | 779 | t2 = time.process_time() |