summaryrefslogtreecommitdiffstats
path: root/scripts/pybootchartgui
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2013-11-15 18:08:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-18 12:41:11 +0000
commit388daa9a8ce7f2216fb55ce65cab1d4060f6c41d (patch)
treee70d212750b53e8aec18994989b12ed8f24dfe2e /scripts/pybootchartgui
parent55fa7f768bb7618f2daaf43f147609c76e077b8b (diff)
downloadopenembedded-core-388daa9a8ce7f2216fb55ce65cab1d4060f6c41d.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. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/pybootchartgui')
-rw-r--r--scripts/pybootchartgui/pybootchartgui/draw.py4
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
meminfo_bar_h = 2 * bar_h
header_h = 110 + 2 * (30 + bar_h) + 1 * (30 + meminfo_bar_h)
# offsets
-off_x, off_y = 10, 10
+off_x, off_y = 220, 10
sec_w_base = 1 # the width of a second
proc_h = 16 # the height of a process
leg_s = 10
@@ -416,7 +416,7 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
#print val
#print trace.processes[val][1]
#print s
- x = (s - offset) * sec_w
+ x = chart_rect[0] + (s - offset) * sec_w
w = ((trace.processes[val][1] - s) * sec_w)
#print "proc at %s %s %s %s" % (x, y, w, proc_h)