diff options
Diffstat (limited to 'scripts/pybootchartgui')
| -rw-r--r-- | scripts/pybootchartgui/pybootchartgui/parsing.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/parsing.py b/scripts/pybootchartgui/pybootchartgui/parsing.py index daee5932cf..0600b5162b 100644 --- a/scripts/pybootchartgui/pybootchartgui/parsing.py +++ b/scripts/pybootchartgui/pybootchartgui/parsing.py | |||
| @@ -50,9 +50,10 @@ class Trace: | |||
| 50 | self.parent_map = None | 50 | self.parent_map = None |
| 51 | self.mem_stats = None | 51 | self.mem_stats = None |
| 52 | 52 | ||
| 53 | parse_paths (writer, self, paths) | 53 | if len(paths): |
| 54 | if not self.valid(): | 54 | parse_paths (writer, self, paths) |
| 55 | raise ParseError("empty state: '%s' does not contain a valid bootchart" % ", ".join(paths)) | 55 | if not self.valid(): |
| 56 | raise ParseError("empty state: '%s' does not contain a valid bootchart" % ", ".join(paths)) | ||
| 56 | 57 | ||
| 57 | return | 58 | return |
| 58 | 59 | ||
| @@ -713,7 +714,7 @@ def split_res(res, n): | |||
| 713 | start = 0 | 714 | start = 0 |
| 714 | end = frag_size | 715 | end = frag_size |
| 715 | while start < end: | 716 | while start < end: |
| 716 | state = ParserState() | 717 | state = Trace(None, [], None) |
| 717 | for i in range(start, end): | 718 | for i in range(start, end): |
| 718 | # Add these lines for reference | 719 | # Add these lines for reference |
| 719 | #state.processes[pn + ":" + task] = [start, end] | 720 | #state.processes[pn + ":" + task] = [start, end] |
