summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2014-01-21 16:22:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-23 10:17:32 +0000
commit34a5d1e9cd7df1fb46431ffda2371f5772a4eaf9 (patch)
treefadb01478cada7a3ea8ffb09c532dbf493f51be4 /scripts
parentff49d8e6353411d8f9285e053ce365265a4abc4f (diff)
downloadpoky-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')
-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:
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]