diff options
author | joshuazivkovic <joshua.zivkovic@codethink.co.uk> | 2022-12-14 13:31:22 +0100 |
---|---|---|
committer | joshuazivkovic <joshua.zivkovic@codethink.co.uk> | 2023-01-18 15:33:08 +0100 |
commit | dc57a3387bbe7770491f35e0d993f411237636b5 (patch) | |
tree | 8f52ff6f54059d53384dcfd2ae9132ce08ad83c9 /man/systemd-analyze.xml | |
parent | systemd-analyze: Add table and JSON output implementation to plot (diff) | |
download | systemd-dc57a3387bbe7770491f35e0d993f411237636b5.tar.xz systemd-dc57a3387bbe7770491f35e0d993f411237636b5.zip |
systemd-analyze: Update man/systemd-analyze.xml with Plot JSON and table
Diffstat (limited to '')
-rw-r--r-- | man/systemd-analyze.xml | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml index 4a276bd3c7..d5f1e5ae89 100644 --- a/man/systemd-analyze.xml +++ b/man/systemd-analyze.xml @@ -274,8 +274,8 @@ Timestamp units-load-finish: Thu 2019-03-14 23:28:07 CET <refsect2> <title><command>systemd-analyze plot</command></title> - <para>This command prints an SVG graphic detailing which system services have been started at what - time, highlighting the time they spent on initialization.</para> + <para>This command prints either an SVG graphic, detailing which system services have been started at what + time, highlighting the time they spent on initialization, or the raw time data in JSON or table format.</para> <example> <title><command>Plot a bootchart</command></title> @@ -1211,7 +1211,17 @@ $ systemd-analyze verify /tmp/source:alias.service corresponds to a higher security threat. The JSON version of the table is printed to standard output. The <replaceable>MODE</replaceable> passed to the option can be one of three: <option>off</option> which is the default, <option>pretty</option> and <option>short</option> - which respectively output a prettified or shorted JSON version of the security table.</para></listitem> + which respectively output a prettified or shorted JSON version of the security table. + + With the <command>plot</command> command, genereate a JSON formatted output of the raw time data. + The format is a JSON array with objects containing the following fields: <varname>name</varname> + which is the unit name, <varname>activated</varname> which is the time after startup the + service was activated, <varname>activating</varname> which is how long after startup the service + was initially started, <varname>time</varname> which is how long the service took to activate + from when it was initially started, <varname>deactivated</varname> which is the time after startup + that the service was deactivated, <varname>deactivating</varname> whcih is the time after startup + that the service was initially told to deactivate. + </para></listitem> </varlistentry> <varlistentry> @@ -1242,6 +1252,21 @@ $ systemd-analyze verify /tmp/source:alias.service other paths.</para></listitem> </varlistentry> + <varlistentry> + <term><option>--table</option></term> + + <listitem><para>When used with the <command>plot</command> command, the raw time data is output in a table. + </para></listitem> + </varlistentry> + + <varlistentry> + <term><option>--no-legend</option></term> + + <listitem><para>When used with the <command>plot</command> command in combination with either + <option>--table</option> or <option>--json=</option>, no legends or hints are included in the output. + </para></listitem> + </varlistentry> + <xi:include href="user-system-options.xml" xpointer="host" /> <xi:include href="user-system-options.xml" xpointer="machine" /> |