Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
4436b983
Commit
4436b983
authored
Oct 10, 2017
by
Kirill Smelkov
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
...
...
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