[oe-commits] Peter Kjellerstedt : pybootchartgui: Make the -s option work again

git at git.openembedded.org git at git.openembedded.org
Thu Jan 23 10:14:53 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 8245ceab3acd02618f24665ff5dc203c1e5cce1d
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8245ceab3acd02618f24665ff5dc203c1e5cce1d

Author: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
Date:   Tue Jan 21 16:22:31 2014 +0100

pybootchartgui: Make the -s option work again

[YOCTO #5588]

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/pybootchartgui/pybootchartgui/parsing.py | 9 +++++----
 1 file 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]



More information about the Openembedded-commits mailing list