diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2023-07-10 22:24:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-14 17:31:05 +0100 |
commit | d1dc34bac4a3feb036500b00a17cf4151d3083fe (patch) | |
tree | 4134697169afd4273bdf1542ce9f8d863294012d | |
parent | 174e1790b7740037ed879021b426f31eea8be703 (diff) | |
download | poky-d1dc34bac4a3feb036500b00a17cf4151d3083fe.tar.gz |
pybootchartgui: concatenate the elapsed time with the process
The function draw_label_in_box have logic to chose the rigth side
to call the draw_text, so use it instaed of forcing the cordinates
of the right side.
(From OE-Core rev: b369e9bb0136fecc65f49e0965e5506aa50f489e)
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/draw.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index ddfa9a6192..10f6783d38 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py | |||
@@ -682,10 +682,9 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w): | |||
682 | draw_fill_rect(ctx, col, (x, y, w, proc_h)) | 682 | draw_fill_rect(ctx, col, (x, y, w, proc_h)) |
683 | draw_rect(ctx, PROC_BORDER_COLOR, (x, y, w, proc_h)) | 683 | draw_rect(ctx, PROC_BORDER_COLOR, (x, y, w, proc_h)) |
684 | 684 | ||
685 | draw_label_in_box(ctx, PROC_TEXT_COLOR, process, x, y + proc_h - 4, w, proc_h) | ||
686 | |||
687 | # Show elapsed time for each task | 685 | # Show elapsed time for each task |
688 | draw_text(ctx, elapsed_time, PROC_TEXT_COLOR, x + w + 4, y + proc_h - 4) | 686 | process = "%ds %s" % (elapsed_time, process) |
687 | draw_label_in_box(ctx, PROC_TEXT_COLOR, process, x, y + proc_h - 4, w, proc_h) | ||
689 | 688 | ||
690 | y = y + proc_h | 689 | y = y + proc_h |
691 | 690 | ||