- Notifications
You must be signed in to change notification settings - Fork1k
feat(cli): addcoder stat
command#8005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
48 commits Select commitHold shift + click to select a range
5db9006
add stat command
johnstcnd6029b4
cpu working on mac
johnstcn18f4942
add stat memory
johnstcn251fdda
support values with no total
johnstcn4c081dc
move clistats to its own package
johnstcn2ba7392
fix container detection to work with sysbox containers
johnstcn0e1c96a
add cross-platform declaration for IsContainerized()
johnstcn0f9859e
add a sync.Once to IsContainerized()
johnstcna220c7f
make uptime minutes
johnstcn89f7e8d
lint
johnstcnc51e245
extract nproc to variable
johnstcn3528c00
add skeleton of cgroup stuff
johnstcn7108c6e
initial cgroupv2 cpu implementation
johnstcn4ef5f24
fix disk_windows
johnstcnf0f7b6a
add tests for clistats
johnstcn6a878b9
improve testing
johnstcnbe7ba72
remove unnecessary os-specific implementations now that we have abstr…
johnstcn3643407
remove uptime stat as it is trivial to implement in bash
johnstcn1c8943e
implement cgroupv1 cpu
johnstcn95b8d1f
unskip container memory tests
johnstcn495b5b0
flesh out tests
johnstcnfa0c4c6
cgroupv1 memory
johnstcn70ef79b
improve tests to allow testing cpu used
johnstcn7eeefc1
refactor cpu usage calc
johnstcn305675f
fix tests
johnstcnd1bb322
fix off-by-10 error
johnstcneb2bcf6
remove --sample-interval and collect CPU stats in parallel
johnstcn44edcf3
fmt; gen
johnstcn0f3254a
make default_cols consistent to avoid ci surprises
johnstcnedd99f4
fix race condition
johnstcn49b6861
remove UPTIME from test
johnstcn69b1904
update golden files
johnstcn7eb526d
add stat subcommands
johnstcn665bf7f
allow modifying unit prefixes
johnstcn6b11a5c
update docs and examples
johnstcnc1467f0
fix NaN issue for HostCPU
johnstcn789c6de
avoid blocking on err chan
johnstcn482db10
add percentages
johnstcn0775082
remove outdated comments
johnstcn73debf8
handle counter reset
johnstcnd0c992a
add test for large difference between used and total
johnstcnef7460a
auto-scale precision, limiting to 3 digits
johnstcnbec527f
automatically scale precision, remove --prefix arg
johnstcn08adba7
make gen
johnstcn78f76e7
improve cli tests
johnstcn9a82882
update go.mod
johnstcn19c8a80
Merge remote-tracking branch 'origin/main' into cj/coder-stat
johnstcneab2530
update go.sum
johnstcnFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
update go.mod
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit9a828823328e40ac0a8f522f63fb08586309c71f
There are no files selected for viewing
8 changes: 5 additions & 3 deletionsgo.mod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletionsgo.sum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.