diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2014-01-21 16:22:31 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-22 07:26:29 +0000 |
commit | 8245ceab3acd02618f24665ff5dc203c1e5cce1d (patch) | |
tree | 1cc07617b0855002e2d56c5ae4cf4d9772778496 /scripts/pybootchartgui | |
parent | 6f6a10372b6a318be7695b6b50275a8a3e9ed033 (diff) | |
download | openembedded-core-contrib-8245ceab3acd02618f24665ff5dc203c1e5cce1d.tar.gz |
pybootchartgui: Make the -s option work again
[YOCTO #5588]
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 daee5932cf0..0600b5162bc 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] |