diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2023-09-08 13:37:56 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-09 22:14:41 +0100 |
commit | 9e85a4cbcaf9a30c2d4af1f46289a59db752c863 (patch) | |
tree | bd983bacada7b0c173908f6034bc3877f12bad0c /scripts/pybootchartgui | |
parent | a72438e9c413fc77c2f1e616ffc04663c1bcf76d (diff) | |
download | poky-9e85a4cbcaf9a30c2d4af1f46289a59db752c863.tar.gz |
pybootchartgui: also match do_compile and do_configure subtasks
This will match other deviation subtask of the same main task,
a couple of them can be found on oe-core layer:
do_compile_kernelmodules
do_compile_ptest
cmake_do_configure
setuptools3_do_configure
cargo_common_do_configure
python_pyo3_do_configure
python_setuptools3_rust_do_configure
This task will be also painted with the same color of the main task
but using alpha blending.
(From OE-Core rev: f10582b1c9a5639b48a4663453d201652facb179)
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/pybootchartgui')
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/draw.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index 3d1ff695c1..c6e67833ab 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py | |||
@@ -659,12 +659,21 @@ def render_processes_chart(ctx, options, trace, curr_y, width, h, sec_w): | |||
659 | x = chart_rect[0] + (start - offset) * sec_w | 659 | x = chart_rect[0] + (start - offset) * sec_w |
660 | w = elapsed_time * sec_w | 660 | w = elapsed_time * sec_w |
661 | 661 | ||
662 | def set_alfa(color, alfa): | ||
663 | clist = list(color) | ||
664 | clist[-1] = alfa | ||
665 | return tuple(clist) | ||
666 | |||
662 | #print("proc at %s %s %s %s" % (x, y, w, proc_h)) | 667 | #print("proc at %s %s %s %s" % (x, y, w, proc_h)) |
663 | col = None | 668 | col = None |
664 | if task == "do_compile": | 669 | if task == "do_compile": |
665 | col = TASK_COLOR_COMPILE | 670 | col = TASK_COLOR_COMPILE |
671 | elif "do_compile" in task: | ||
672 | col = set_alfa(TASK_COLOR_COMPILE, 0.25) | ||
666 | elif task == "do_configure": | 673 | elif task == "do_configure": |
667 | col = TASK_COLOR_CONFIGURE | 674 | col = TASK_COLOR_CONFIGURE |
675 | elif "do_configure" in task: | ||
676 | col = set_alfa(TASK_COLOR_CONFIGURE, 0.25) | ||
668 | elif task == "do_install": | 677 | elif task == "do_install": |
669 | col = TASK_COLOR_INSTALL | 678 | col = TASK_COLOR_INSTALL |
670 | elif task == "do_populate_sysroot": | 679 | elif task == "do_populate_sysroot": |