mirror of
https://github.com/systemd/systemd.git
synced 2025-03-14 04:58:28 +03:00
analyze: report startup time in plot mode as well
It now prints something like "Startup finished in 1507ms (kernel) + 850ms (userspace) = 2357ms" below the legend.
This commit is contained in:
parent
70daa62332
commit
f2b33002cd
@ -221,6 +221,18 @@ elif sys.argv[1] == 'plot':
|
||||
|
||||
draw_text(context, 0, height-border*2, "Legend: Red = Activating; Pink = Active; Dark Pink = Deactivating", hcenter = 0, vcenter = -1)
|
||||
|
||||
if initrd_time > 0:
|
||||
draw_text(context, 0, height-border*2 + bar_height, "Startup finished in %lums (kernel) + %lums (initrd) + %lums (userspace) = %lums" % ( \
|
||||
initrd_time/1000, \
|
||||
(start_time - initrd_time)/1000, \
|
||||
(finish_time - start_time)/1000, \
|
||||
finish_time/1000), hcenter = 0, vcenter = -1)
|
||||
else:
|
||||
draw_text(context, 0, height-border*2 + bar_height, "Startup finished in %lums (kernel) + %lums (userspace) = %lums" % ( \
|
||||
start_time/1000, \
|
||||
(finish_time - start_time)/1000, \
|
||||
finish_time/1000), hcenter = 0, vcenter = -1)
|
||||
|
||||
surface.finish()
|
||||
elif sys.argv[1] in ("help", "--help", "-h"):
|
||||
help()
|
||||
|
Loading…
x
Reference in New Issue
Block a user