mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
174e1790b7
commit
d1dc34bac4
@@ -682,10 +682,9 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
|
|||||||
draw_fill_rect(ctx, col, (x, y, w, proc_h))
|
draw_fill_rect(ctx, col, (x, y, w, proc_h))
|
||||||
draw_rect(ctx, PROC_BORDER_COLOR, (x, y, w, proc_h))
|
draw_rect(ctx, PROC_BORDER_COLOR, (x, y, w, proc_h))
|
||||||
|
|
||||||
draw_label_in_box(ctx, PROC_TEXT_COLOR, process, x, y + proc_h - 4, w, proc_h)
|
|
||||||
|
|
||||||
# Show elapsed time for each task
|
# Show elapsed time for each task
|
||||||
draw_text(ctx, elapsed_time, PROC_TEXT_COLOR, x + w + 4, y + proc_h - 4)
|
process = "%ds %s" % (elapsed_time, process)
|
||||||
|
draw_label_in_box(ctx, PROC_TEXT_COLOR, process, x, y + proc_h - 4, w, proc_h)
|
||||||
|
|
||||||
y = y + proc_h
|
y = y + proc_h
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user