summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pybootchartgui/pybootchartgui/parsing.py9
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:
self.parent_map = None
self.mem_stats = None
- parse_paths (writer, self, paths)
- if not self.valid():
- raise ParseError("empty state: '%s' does not contain a valid bootchart" % ", ".join(paths))
+ if len(paths):
+ parse_paths (writer, self, paths)
+ if not self.valid():
+ raise ParseError("empty state: '%s' does not contain a valid bootchart" % ", ".join(paths))
return
@@ -713,7 +714,7 @@ def split_res(res, n):
start = 0
end = frag_size
while start < end:
- state = ParserState()
+ state = Trace(None, [], None)
for i in range(start, end):
# Add these lines for reference
#state.processes[pn + ":" + task] = [start, end]