summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2013-11-15 18:09:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-18 12:44:56 +0000
commit8c26891e1dc59ad9efd876794b9eac79e393845b (patch)
tree75f2792456a04fe95eea37e4e9ce4553f744a8d7 /scripts
parent85fca34bd93ea2e1991b6c148de6f1046e674ef8 (diff)
downloadpoky-8c26891e1dc59ad9efd876794b9eac79e393845b.tar.gz
pybootchartgui: Add a color for the package_write_* tasks
(From OE-Core rev: 2cec29b47a1de5da712cf4e2c6e25daf45d9f265) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pybootchartgui/pybootchartgui/draw.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index 718d95e988..2a261600a5 100644
--- a/scripts/pybootchartgui/pybootchartgui/draw.py
+++ b/scripts/pybootchartgui/pybootchartgui/draw.py
@@ -130,6 +130,8 @@ TASK_COLOR_INSTALL = (1.0, 0.00, 1.00, 1.0)
130TASK_COLOR_SYSROOT = (0.0, 0.00, 1.00, 1.0) 130TASK_COLOR_SYSROOT = (0.0, 0.00, 1.00, 1.0)
131# Package task color 131# Package task color
132TASK_COLOR_PACKAGE = (0.0, 1.00, 1.00, 1.0) 132TASK_COLOR_PACKAGE = (0.0, 1.00, 1.00, 1.0)
133# Package Write RPM/DEB/IPK task color
134TASK_COLOR_PACKAGE_WRITE = (0.0, 0.50, 0.50, 1.0)
133 135
134# Process states 136# Process states
135STATE_UNDEFINED = 0 137STATE_UNDEFINED = 0
@@ -418,6 +420,8 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
418 TASK_COLOR_SYSROOT, off_x+480, curr_y + 45, leg_s) 420 TASK_COLOR_SYSROOT, off_x+480, curr_y + 45, leg_s)
419 draw_legend_box (ctx, "Package", \ 421 draw_legend_box (ctx, "Package", \
420 TASK_COLOR_PACKAGE, off_x+480, curr_y + 45, leg_s) 422 TASK_COLOR_PACKAGE, off_x+480, curr_y + 45, leg_s)
423 draw_legend_box (ctx, "Package Write",
424 TASK_COLOR_PACKAGE_WRITE, off_x+600, curr_y + 45, leg_s)
421 425
422 ctx.set_font_size(PROC_TEXT_FONT_SIZE) 426 ctx.set_font_size(PROC_TEXT_FONT_SIZE)
423 427
@@ -451,6 +455,10 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
451 col = TASK_COLOR_SYSROOT 455 col = TASK_COLOR_SYSROOT
452 elif task == "do_package": 456 elif task == "do_package":
453 col = TASK_COLOR_PACKAGE 457 col = TASK_COLOR_PACKAGE
458 elif task == "do_package_write_rpm" or \
459 task == "do_package_write_deb" or \
460 task == "do_package_write_ipk":
461 col = TASK_COLOR_PACKAGE_WRITE
454 else: 462 else:
455 col = WHITE 463 col = WHITE
456 464