From c6e88199ddf2c4ae243d42afc403d28ab56f00f0 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Tue, 21 Jan 2014 16:22:35 +0100 Subject: 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. Signed-off-by: Peter Kjellerstedt Signed-off-by: Richard Purdie --- scripts/pybootchartgui/pybootchartgui/draw.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/pybootchartgui/pybootchartgui/draw.py') 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): end = trace.processes[proc][1] processes += 1 + if trace.min is not None and trace.max is not None: + start = trace.min + end = trace.max + w = int ((end - start) * sec_w_base * xscale) + 2 * off_x h = proc_h * processes + header_h + 2 * off_y @@ -433,7 +437,7 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w): y = curr_y+header_h - offset = min(trace.start.keys()) + offset = trace.min or min(trace.start.keys()) for s in sorted(trace.start.keys()): for val in sorted(trace.start[s]): if not options.app_options.show_all and \ -- cgit 1.2.3-korg