From 915b375388231ed97cad2929ab948756bfc77c42 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 13 Sep 2012 18:54:32 +0200 Subject: 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. --- src/analyze/systemd-analyze | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/analyze') 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() -- cgit v1.2.3-54-g00ecf