_systemd-analyze revision 7abfbe7903d8e792850ec39286a3d86e616a6477
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas#compdef systemd-analyze
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas_systemd_analyze_command(){
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas local -a _systemd_analyze_cmds
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas # Descriptions taken from systemd-analyze --help.
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas _systemd_analyze_cmds=(
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas 'time:Print time spent in the kernel before reaching userspace'
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas 'blame:Print list of running units ordered by time to init'
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas 'critical-chain:Print a tree of the time critical chain of units'
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas 'plot:Output SVG graphic showing service initialization'
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas 'dot:Dump dependency graph (in dot(1) format)'
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas if (( CURRENT == 1 )); then
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas _describe "options" _systemd_analyze_cmds
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas _message "no more options"
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas {-h,--help}'[Show help text.]' \
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas '--user[Shows performance data of user sessions instead of the system manager.]' \
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas '--order[When generating graph for dot, show only order]' \
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas '--require[When generating graph for dot, show only requirement]' \
7abfbe7903d8e792850ec39286a3d86e616a6477William Giokas '*::systemd-analyze commands:_systemd_analyze_command'