summaryrefslogtreecommitdiff
path: root/scripts/pybootchartgui
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2013-11-15 18:08:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-18 12:41:19 +0000
commitf7d1f49aa46a46ecb881386f0399aa7da288d805 (patch)
tree61e0f31915e3461c002018a847a9f1027b3489e6 /scripts/pybootchartgui
parent388daa9a8ce7f2216fb55ce65cab1d4060f6c41d (diff)
downloadopenembedded-core-f7d1f49aa46a46ecb881386f0399aa7da288d805.tar.gz
openembedded-core-f7d1f49aa46a46ecb881386f0399aa7da288d805.tar.bz2
openembedded-core-f7d1f49aa46a46ecb881386f0399aa7da288d805.zip
pybootchartgui: Use correct header height
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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index 9cbcbc1fb9..b1ad6e6627 100644
--- a/scripts/pybootchartgui/pybootchartgui/draw.py
+++ b/scripts/pybootchartgui/pybootchartgui/draw.py
@@ -278,7 +278,7 @@ def draw_chart(ctx, color, fill, chart_bounds, data, proc_tree, data_range):
bar_h = 55
meminfo_bar_h = 2 * bar_h
-header_h = 110 + 2 * (30 + bar_h) + 1 * (30 + meminfo_bar_h)
+header_h = 60
# offsets
off_x, off_y = 220, 10
sec_w_base = 1 # the width of a second
@@ -389,7 +389,7 @@ def render_charts(ctx, options, clip, trace, curr_y, w, h, sec_w):
return curr_y
def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
- chart_rect = [off_x, curr_y+60, w, h - 2 * off_y - (curr_y+60) + proc_h]
+ chart_rect = [off_x, curr_y+header_h, w, h - 2 * off_y - (curr_y+header_h) + proc_h]
draw_legend_box (ctx, "Configure", \
TASK_COLOR_CONFIGURE, off_x , curr_y + 45, leg_s)
@@ -407,7 +407,7 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
draw_box_ticks(ctx, chart_rect, sec_w)
draw_sec_labels(ctx, chart_rect, sec_w, 30)
- y = curr_y+60
+ y = curr_y+header_h
offset = min(trace.start.keys())
for s in sorted(trace.start.keys()):