summaryrefslogtreecommitdiff
path: root/src/core/manager.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-05-15 21:18:26 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-06-02 22:26:13 +0200
commitd9acfb71dbfb6e916b9752593158698b8021b28c (patch)
tree82e27310f08524ef78caa2cf9bc714540324bc19 /src/core/manager.c
parent518d10e98508ec8181e864924484a2ca994c5d43 (diff)
analyze: show unit file loading on plot
This will add another color to the legend called "Loading unit files" Like the generators it will mark a part of the systemd bar indicating the time spent while loading unit files.
Diffstat (limited to 'src/core/manager.c')
-rw-r--r--src/core/manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 73f4c102e8..f16621ac2b 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -847,7 +847,9 @@ int manager_startup(Manager *m, FILE *serialization, FDSet *fds) {
m->n_reloading ++;
/* First, enumerate what we can from all config files */
+ dual_timestamp_get(&m->unitsload_start_timestamp);
r = manager_enumerate(m);
+ dual_timestamp_get(&m->unitsload_finish_timestamp);
/* Second, deserialize if there is something to deserialize */
if (serialization) {