diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2013-11-15 18:08:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-18 12:44:06 +0000 |
commit | 2020eb2e5f5f6d3c568b69eb01396a494e9d8d51 (patch) | |
tree | 9d702c228b9699d1ceb0d7c8f573590c73740389 | |
parent | 1a539bb131189f83e84a35849c779ff8a969a6b6 (diff) | |
download | poky-2020eb2e5f5f6d3c568b69eb01396a494e9d8d51.tar.gz |
pybootchartgui: Correct the X offset for the chart
This will make the first bar actually start within the graph. It will
also move the graph to the right so the names of the first tasks are
more likely to be visible.
(From OE-Core rev: 388daa9a8ce7f2216fb55ce65cab1d4060f6c41d)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/draw.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index c3492c7cb9..9cbcbc1fb9 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py | |||
@@ -280,7 +280,7 @@ bar_h = 55 | |||
280 | meminfo_bar_h = 2 * bar_h | 280 | meminfo_bar_h = 2 * bar_h |
281 | header_h = 110 + 2 * (30 + bar_h) + 1 * (30 + meminfo_bar_h) | 281 | header_h = 110 + 2 * (30 + bar_h) + 1 * (30 + meminfo_bar_h) |
282 | # offsets | 282 | # offsets |
283 | off_x, off_y = 10, 10 | 283 | off_x, off_y = 220, 10 |
284 | sec_w_base = 1 # the width of a second | 284 | sec_w_base = 1 # the width of a second |
285 | proc_h = 16 # the height of a process | 285 | proc_h = 16 # the height of a process |
286 | leg_s = 10 | 286 | leg_s = 10 |
@@ -416,7 +416,7 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w): | |||
416 | #print val | 416 | #print val |
417 | #print trace.processes[val][1] | 417 | #print trace.processes[val][1] |
418 | #print s | 418 | #print s |
419 | x = (s - offset) * sec_w | 419 | x = chart_rect[0] + (s - offset) * sec_w |
420 | w = ((trace.processes[val][1] - s) * sec_w) | 420 | w = ((trace.processes[val][1] - s) * sec_w) |
421 | 421 | ||
422 | #print "proc at %s %s %s %s" % (x, y, w, proc_h) | 422 | #print "proc at %s %s %s %s" % (x, y, w, proc_h) |