Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
4436b983
Commit
4436b983
authored
Oct 10, 2017
by
Kirill Smelkov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X neotest: Provide cpustat command so it is possible to cpustat something external
e.g. neotest cpustat ls
parent
474c17bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
go/neo/t/neotest
go/neo/t/neotest
+15
-0
No files found.
go/neo/t/neotest
View file @
4436b983
...
@@ -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
...
...
Kirill Smelkov
@kirr
mentioned in commit
a60c472c
·
Jul 12, 2018
mentioned in commit
a60c472c
mentioned in commit a60c472c76da315f918afeb06f994c8610cf7c84
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment