pybootchartgui: Make the -s option work again

[YOCTO #5588]

(From OE-Core rev: 8245ceab3acd02618f24665ff5dc203c1e5cce1d)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Kjellerstedt 2014-01-21 16:22:31 +01:00 committed by Richard Purdie
parent ff49d8e635
commit 34a5d1e9cd
1 changed files with 5 additions and 4 deletions

View File

@ -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]