summaryrefslogtreecommitdiffstats
path: root/scripts/pybootchartgui/pybootchartgui/draw.py
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2014-01-21 16:22:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-23 10:17:36 +0000
commit7b171ed393b179e2b9cebf73019024617bf6a67f (patch)
tree7689506a26d5fe92ba96fda97d779e5a0cabfbc9 /scripts/pybootchartgui/pybootchartgui/draw.py
parent57c93e35074da2de5a66001b24a31cd40a9b2ca7 (diff)
downloadpoky-7b171ed393b179e2b9cebf73019024617bf6a67f.tar.gz
pybootchartgui: Add option -T to allways use the full time
When --full-time (or -T) is used, the graph allways shows the full time regardless of which processes are currently shown. This is especially useful in combinationm with the -s flag when outputting to multiple files. (From OE-Core rev: c6e88199ddf2c4ae243d42afc403d28ab56f00f0) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/pybootchartgui/pybootchartgui/draw.py')
-rw-r--r--scripts/pybootchartgui/pybootchartgui/draw.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index 4a2ffd79e1..8c574be50c 100644
--- a/scripts/pybootchartgui/pybootchartgui/draw.py
+++ b/scripts/pybootchartgui/pybootchartgui/draw.py
@@ -314,6 +314,10 @@ def extents(options, xscale, trace):
314 end = trace.processes[proc][1] 314 end = trace.processes[proc][1]
315 processes += 1 315 processes += 1
316 316
317 if trace.min is not None and trace.max is not None:
318 start = trace.min
319 end = trace.max
320
317 w = int ((end - start) * sec_w_base * xscale) + 2 * off_x 321 w = int ((end - start) * sec_w_base * xscale) + 2 * off_x
318 h = proc_h * processes + header_h + 2 * off_y 322 h = proc_h * processes + header_h + 2 * off_y
319 323
@@ -433,7 +437,7 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
433 437
434 y = curr_y+header_h 438 y = curr_y+header_h
435 439
436 offset = min(trace.start.keys()) 440 offset = trace.min or min(trace.start.keys())
437 for s in sorted(trace.start.keys()): 441 for s in sorted(trace.start.keys()):
438 for val in sorted(trace.start[s]): 442 for val in sorted(trace.start[s]):
439 if not options.app_options.show_all and \ 443 if not options.app_options.show_all and \