[oe-commits] Peter Kjellerstedt : pybootchartgui: Add a color for the package_write_* tasks
git at git.openembedded.org
git at git.openembedded.org
Wed Nov 20 11:09:40 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 2cec29b47a1de5da712cf4e2c6e25daf45d9f265
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2cec29b47a1de5da712cf4e2c6e25daf45d9f265
Author: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
Date: Fri Nov 15 18:09:02 2013 +0100
pybootchartgui: Add a color for the package_write_* tasks
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/pybootchartgui/pybootchartgui/draw.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index 718d95e..2a26160 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)
TASK_COLOR_SYSROOT = (0.0, 0.00, 1.00, 1.0)
# Package task color
TASK_COLOR_PACKAGE = (0.0, 1.00, 1.00, 1.0)
+# Package Write RPM/DEB/IPK task color
+TASK_COLOR_PACKAGE_WRITE = (0.0, 0.50, 0.50, 1.0)
# Process states
STATE_UNDEFINED = 0
@@ -418,6 +420,8 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
TASK_COLOR_SYSROOT, off_x+480, curr_y + 45, leg_s)
draw_legend_box (ctx, "Package", \
TASK_COLOR_PACKAGE, off_x+480, curr_y + 45, leg_s)
+ draw_legend_box (ctx, "Package Write",
+ TASK_COLOR_PACKAGE_WRITE, off_x+600, curr_y + 45, leg_s)
ctx.set_font_size(PROC_TEXT_FONT_SIZE)
@@ -451,6 +455,10 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
col = TASK_COLOR_SYSROOT
elif task == "do_package":
col = TASK_COLOR_PACKAGE
+ elif task == "do_package_write_rpm" or \
+ task == "do_package_write_deb" or \
+ task == "do_package_write_ipk":
+ col = TASK_COLOR_PACKAGE_WRITE
else:
col = WHITE
More information about the Openembedded-commits
mailing list