Commit 4436b983 authored by Kirill Smelkov's avatar Kirill Smelkov

X neotest: Provide cpustat command so it is possible to cpustat something external

e.g.

	neotest cpustat ls
parent 474c17bc
...@@ -911,6 +911,11 @@ cmd_info() { ...@@ -911,6 +911,11 @@ cmd_info() {
on $url ./neotest info-local on $url ./neotest info-local
} }
# utility: cpustat on running arbitrary command
cmd_cpustat() {
cpustat "$@"
}
# ---- main driver ---- # ---- main driver ----
usage() { usage() {
...@@ -935,6 +940,10 @@ The commands are: ...@@ -935,6 +940,10 @@ The commands are:
info print information about a node info print information about a node
info-local print information about local deployment info-local print information about local deployment
Additional utility commands:
cpustat run a command and print CPU-related statistics
EOF EOF
} }
...@@ -959,6 +968,12 @@ info-local) ...@@ -959,6 +968,12 @@ info-local)
exit 0 exit 0
;; ;;
cpustat)
shift
cmd_cpustat "$@"
exit 0
;;
-h) -h)
usage usage
exit 0 exit 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment