Browse Source

systemd-analyze: Add examples for 'plot' and 'dot' (#5784)

Sematre 3 years ago
parent
commit
743f7d7d4f
1 changed files with 8 additions and 0 deletions
  1. 8 0
      pages/linux/systemd-analyze.md

+ 8 - 0
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}}`