[systemd-devel] Patch to show systemd & generators

Lennart Poettering lennart at poettering.net
Thu Jun 6 02:10:41 PDT 2013


On Tue, 14.05.13 08:59, Thomas H.P. Andersen (phomes at gmail.com) wrote:

> >> Would you be interested in a patch that shows "Systemd + Generators" or
> >> maybe only "Generators"?
> >
> > Well, I guess it makes sense to show how much time is spent in the
> > generators and how much time is spent in systemd's own unit file loading
> > (especially given that the latter isn't particularly optimized yet...)
> I was looking for the relevant code parts for this. Is this basically
> what is done in manager_enumerate?

Well, it's more complicated than that. manager_enumerate() will find
discover all units that encapsulate pre-existing objects. But this does
not include the units from the initial transaction. I guess we need to
time both manager_startup() and the manager_add_job() for the initial
transaction. 

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list