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-23 10:17:32 +0000 |
commit | 34a5d1e9cd7df1fb46431ffda2371f5772a4eaf9 (patch) | |
tree | fadb01478cada7a3ea8ffb09c532dbf493f51be4 /scripts/pybootchartgui | |
parent | ff49d8e6353411d8f9285e053ce365265a4abc4f (diff) | |
download | ast2050-yocto-poky-34a5d1e9cd7df1fb46431ffda2371f5772a4eaf9.zip ast2050-yocto-poky-34a5d1e9cd7df1fb46431ffda2371f5772a4eaf9.tar.gz |
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>
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 daee593..0600b51 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] |