diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-13 18:54:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-13 18:54:32 +0200 |
commit | 915b375388231ed97cad2929ab948756bfc77c42 (patch) | |
tree | 9396ec2815d3e0fda9d593130533b2b739e6483c /src/analyze | |
parent | e50d5048652a3f481ab730e17c90e874d967aa90 (diff) |
manager: extend performance measurement interface to include firmware/loader times
This only adds the fields to the D-Bus interfaces but doesn't fill them
in with anything useful yet. Gummiboot exposes the necessary bits of
information to use however and as soon as I get my fingers on a proper
UEFI laptop I'll hook up the remaining bits.
Since we want to stabilize the D-Bus interface soon and include it in
the stability promise we should get the last fixes in, hence this change
now.
Diffstat (limited to 'src/analyze')
-rwxr-xr-x | src/analyze/systemd-analyze | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/analyze/systemd-analyze b/src/analyze/systemd-analyze index 76eceee9f0..636fd7422b 100755 --- a/src/analyze/systemd-analyze +++ b/src/analyze/systemd-analyze @@ -32,17 +32,17 @@ def acquire_start_time(): properties = dbus.Interface(bus.get_object('org.freedesktop.systemd1', '/org/freedesktop/systemd1'), 'org.freedesktop.DBus.Properties') initrd_time = int(properties.Get('org.freedesktop.systemd1.Manager', 'InitRDTimestampMonotonic')) - startup_time = int(properties.Get('org.freedesktop.systemd1.Manager', 'StartupTimestampMonotonic')) + userspace_time = int(properties.Get('org.freedesktop.systemd1.Manager', 'UserspaceTimestampMonotonic')) finish_time = int(properties.Get('org.freedesktop.systemd1.Manager', 'FinishTimestampMonotonic')) if finish_time == 0: sys.stderr.write("Bootup is not yet finished. Please try again later.\n") sys.exit(1) - assert initrd_time <= startup_time - assert startup_time <= finish_time + assert initrd_time <= userspace_time + assert userspace_time <= finish_time - return initrd_time, startup_time, finish_time + return initrd_time, userspace_time, finish_time def draw_box(context, j, k, l, m, r = 0, g = 0, b = 0): context.save() |