[oe-commits] Peter Kjellerstedt : pybootchartgui: Reorder the legend to match the task execution order

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: a12cf87471de40ce432d0176eabfb111de5310c6
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a12cf87471de40ce432d0176eabfb111de5310c6

Author: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
Date:   Fri Nov 15 18:09:01 2013 +0100

pybootchartgui: Reorder the legend to match the task execution order

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 | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index ea960f9..718d95e 100644
--- a/scripts/pybootchartgui/pybootchartgui/draw.py
+++ b/scripts/pybootchartgui/pybootchartgui/draw.py
@@ -126,10 +126,10 @@ TASK_COLOR_CONFIGURE = (1.0, 1.0, 0.00, 1.0)
 TASK_COLOR_COMPILE = (0.0, 1.00, 0.00, 1.0)
 # Install task color
 TASK_COLOR_INSTALL = (1.0, 0.00, 1.00, 1.0)
-# Package task color
-TASK_COLOR_PACKAGE = (0.0, 1.00, 1.00, 1.0)
 # Sysroot task color
 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)
 
 # Process states
 STATE_UNDEFINED = 0
@@ -414,10 +414,10 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
 			 TASK_COLOR_COMPILE, off_x+120, curr_y + 45, leg_s)
 	draw_legend_box (ctx, "Install", \
 			 TASK_COLOR_INSTALL, off_x+240, curr_y + 45, leg_s)
-	draw_legend_box (ctx, "Package", \
-			 TASK_COLOR_PACKAGE, off_x+360, curr_y + 45, leg_s)
 	draw_legend_box (ctx, "Populate Sysroot", \
 			 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)
 
 	ctx.set_font_size(PROC_TEXT_FONT_SIZE)
 
@@ -447,10 +447,10 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
                     col = TASK_COLOR_CONFIGURE
                 elif task == "do_install":
                     col = TASK_COLOR_INSTALL
-                elif task == "do_package":
-                    col = TASK_COLOR_PACKAGE
                 elif task == "do_populate_sysroot":
                     col = TASK_COLOR_SYSROOT
+                elif task == "do_package":
+                    col = TASK_COLOR_PACKAGE
                 else:
                     col = WHITE
 



More information about the Openembedded-commits mailing list