diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-05-10 20:39:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-05-16 23:31:27 +0200 |
commit | 84bccb47a7bbacbfc0a05ff8fa208758bef83957 (patch) | |
tree | a862636f69551009ba879d3f79ce73ae4ca804a1 /src | |
parent | 53d5582fa006b0eb528f5dc3f4ba978abd8ac5a3 (diff) |
systemd-analyze: print hostname, kernelversion and arch at the top of the plot
Diffstat (limited to 'src')
-rwxr-xr-x | src/systemd-analyze | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/systemd-analyze b/src/systemd-analyze index 4f3e478e99..ae7dcfbd8a 100755 --- a/src/systemd-analyze +++ b/src/systemd-analyze @@ -110,7 +110,7 @@ elif sys.argv[1] == 'blame': sys.stdout.write("%6lums %s\n" % ((aet - ixt) / 1000, name)) elif sys.argv[1] == 'plot': - import cairo + import cairo, os initrd_time, start_time, finish_time = acquire_start_time() data = acquire_time_data() @@ -160,6 +160,9 @@ elif sys.argv[1] == 'plot': context.stroke() context.restore() + banner = "Running on %s (%s %s) %s" % (os.uname()[1], os.uname()[2], os.uname()[3], os.uname()[4]) + draw_text(context, 0, -15, banner, hcenter = 0, vcenter = 1) + for x in range(0, (finish_time - start_time)/10000, 100): draw_text(context, x, -5, "%lus" % (x/100), vcenter = 0, hcenter = 0) |