mirror of
https://git.yoctoproject.org/poky
synced 2026-06-04 14:09:47 +00:00
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:
committed by
Richard Purdie
parent
ff49d8e635
commit
34a5d1e9cd
@@ -50,9 +50,10 @@ class Trace:
|
|||||||
self.parent_map = None
|
self.parent_map = None
|
||||||
self.mem_stats = None
|
self.mem_stats = None
|
||||||
|
|
||||||
parse_paths (writer, self, paths)
|
if len(paths):
|
||||||
if not self.valid():
|
parse_paths (writer, self, paths)
|
||||||
raise ParseError("empty state: '%s' does not contain a valid bootchart" % ", ".join(paths))
|
if not self.valid():
|
||||||
|
raise ParseError("empty state: '%s' does not contain a valid bootchart" % ", ".join(paths))
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -713,7 +714,7 @@ def split_res(res, n):
|
|||||||
start = 0
|
start = 0
|
||||||
end = frag_size
|
end = frag_size
|
||||||
while start < end:
|
while start < end:
|
||||||
state = ParserState()
|
state = Trace(None, [], None)
|
||||||
for i in range(start, end):
|
for i in range(start, end):
|
||||||
# Add these lines for reference
|
# Add these lines for reference
|
||||||
#state.processes[pn + ":" + task] = [start, end]
|
#state.processes[pn + ":" + task] = [start, end]
|
||||||
|
|||||||
Reference in New Issue
Block a user