diff options
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() |