From 743f7d7d4f4c3a4fb92b806b46443cf90a0005ee Mon Sep 17 00:00:00 2001 From: Sematre Date: Sun, 18 Apr 2021 17:28:12 +0200 Subject: [PATCH] systemd-analyze: Add examples for 'plot' and 'dot' (#5784) --- pages/linux/systemd-analyze.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/linux/systemd-analyze.md b/pages/linux/systemd-analyze.md index b914d9a286..5a302034bf 100644 --- a/pages/linux/systemd-analyze.md +++ b/pages/linux/systemd-analyze.md @@ -9,3 +9,11 @@ - Print a tree of the time critical chain of units: `systemd-analyze critical-chain` + +- Create an SVG file showing when each system service started, highlighting the time that they spent on initialization: + +`systemd-analyze plot > {{path/to/file.svg}}` + +- Plot a dependency graph and convert it to an SVG file: + +`systemd-analyze dot | dot -T{{svg}} > {{path/to/file.svg}}`