You are not logged in.
Greetings!
Could someone advise please if there is a way to get a 'dot' functionality without full blown GraphViz, which along with deps takes 134 Mb to install:
[al ~ ]$ sudo pacman -S graphviz
resolving dependencies...
looking for conflicting packages...
Package (6) New Version Net Change Download Size
extra/gd 2.1.1-4 0.62 MiB 0.15 MiB
extra/ghostscript 9.19-1 63.35 MiB 13.92 MiB
extra/gts 0.7.6-3 0.60 MiB 0.17 MiB
extra/libpaper 1.1.24-9 0.31 MiB 0.02 MiB
core/run-parts 4.7-1 0.04 MiB 0.03 MiB
extra/graphviz 2.38.0-12 69.66 MiB 5.95 MiB
Total Download Size: 20.25 MiB
Total Installed Size: 134.58 MiB
I only want to use 'systemd-analyze dot' in the following command:
systemd-analyze dot | dot -Tsvg > systemd.svg
Maybe there is some small standalone emulator of dot?
Last edited by nbd (2016-07-15 13:12:05)
bing different
Offline
Offline
Uhm... Never used dot. Could someone advise please how to view my 'systemd-analyze' output in that emulator?
Thanks.
bing different
Offline
Who cares about 134MiB these days? And lots of things need ghostscript in some form or other...
If you don't want graphviz on this system for some reason, but have another system where it's no problem to install it, you could pipe it through ssh.
systemd-analyze dot | ssh user@othersystem dot -Tsvg > systemd.svg
Offline
Well, actually the other way around would be more appropriate: who cares about graphing boot sequence if it takes 134 Mb to accomplish (a tree of text strings would suffice). Anyways, thanks for advising the pipelining receipt.
bing different
Offline
I'm not sure you can do this as a text tree... I haven't ever used this myself before but the result looks very... not sure if you can even call this a graph, it looks more like a ball of wool.
if you want it as text you can just read the dot file directly ;-)
systemd-analyze also has other output options (plot and whatnot)
Offline
systemd-analyze also has other output options (plot and whatnot)
They output different content than dot. But thanks for the example output. I checked also other images in web search and don't know if this feature is a beta or what and if someone actually use it for clearing up the service relations. I deem such visualization as pretty useless. (Marking this thread SOLVED.)
bing different
Offline
I haven't checked if the SVG is layered/grouped in any way... if you could hide the stuff you don't care about it might be interesting...
dot itself also has a ton of options which might be able to improve the results somehow
Offline
I figured out just to copy-paste the systemd-analyze output to the aforementioned emulator and that worked. Yes, the dot option has the switches allowing to specify only subset of units and this allows to get comprehensible graphs.
EDIT:
In case someone interested, here is another dot rendering site:
Last edited by nbd (2016-07-15 16:10:04)
bing different
Offline
Thank you for sharing!
Offline
ushiroad.com doesn't render color edges (the color encodes the meaning of graph edge) and instead of two arrows between nodes, renders only one. So I searched and found rise4fun.com.
bing different
Offline