Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
mtojek merged 48 commits intomainfromcj/coder-stat
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
48 commits
Select commitHold shift + click to select a range
5db9006
add stat command
johnstcnMay 29, 2023
d6029b4
cpu working on mac
johnstcnJun 7, 2023
18f4942
add stat memory
johnstcnJun 7, 2023
251fdda
support values with no total
johnstcnJun 7, 2023
4c081dc
move clistats to its own package
johnstcnJun 8, 2023
2ba7392
fix container detection to work with sysbox containers
johnstcnJun 8, 2023
0e1c96a
add cross-platform declaration for IsContainerized()
johnstcnJun 8, 2023
0f9859e
add a sync.Once to IsContainerized()
johnstcnJun 8, 2023
a220c7f
make uptime minutes
johnstcnJun 8, 2023
89f7e8d
lint
johnstcnJun 8, 2023
c51e245
extract nproc to variable
johnstcnJun 8, 2023
3528c00
add skeleton of cgroup stuff
johnstcnJun 8, 2023
7108c6e
initial cgroupv2 cpu implementation
johnstcnJun 8, 2023
4ef5f24
fix disk_windows
johnstcnJun 8, 2023
f0f7b6a
add tests for clistats
johnstcnJun 8, 2023
6a878b9
improve testing
johnstcnJun 9, 2023
be7ba72
remove unnecessary os-specific implementations now that we have abstr…
johnstcnJun 12, 2023
3643407
remove uptime stat as it is trivial to implement in bash
johnstcnJun 12, 2023
1c8943e
implement cgroupv1 cpu
johnstcnJun 12, 2023
95b8d1f
unskip container memory tests
johnstcnJun 12, 2023
495b5b0
flesh out tests
johnstcnJun 13, 2023
fa0c4c6
cgroupv1 memory
johnstcnJun 13, 2023
70ef79b
improve tests to allow testing cpu used
johnstcnJun 13, 2023
7eeefc1
refactor cpu usage calc
johnstcnJun 13, 2023
305675f
fix tests
johnstcnJun 13, 2023
d1bb322
fix off-by-10 error
johnstcnJun 13, 2023
eb2bcf6
remove --sample-interval and collect CPU stats in parallel
johnstcnJun 13, 2023
44edcf3
fmt; gen
johnstcnJun 13, 2023
0f3254a
make default_cols consistent to avoid ci surprises
johnstcnJun 13, 2023
edd99f4
fix race condition
johnstcnJun 13, 2023
49b6861
remove UPTIME from test
johnstcnJun 13, 2023
69b1904
update golden files
johnstcnJun 13, 2023
7eb526d
add stat subcommands
johnstcnJun 14, 2023
665bf7f
allow modifying unit prefixes
johnstcnJun 14, 2023
6b11a5c
update docs and examples
johnstcnJun 14, 2023
c1467f0
fix NaN issue for HostCPU
johnstcnJun 14, 2023
789c6de
avoid blocking on err chan
johnstcnJun 14, 2023
482db10
add percentages
johnstcnJun 15, 2023
0775082
remove outdated comments
johnstcnJun 15, 2023
73debf8
handle counter reset
johnstcnJun 15, 2023
d0c992a
add test for large difference between used and total
johnstcnJun 15, 2023
ef7460a
auto-scale precision, limiting to 3 digits
johnstcnJun 15, 2023
bec527f
automatically scale precision, remove --prefix arg
johnstcnJun 15, 2023
08adba7
make gen
johnstcnJun 15, 2023
78f76e7
improve cli tests
johnstcnJun 15, 2023
9a82882
update go.mod
johnstcnJun 15, 2023
19c8a80
Merge remote-tracking branch 'origin/main' into cj/coder-stat
johnstcnJun 15, 2023
eab2530
update go.sum
johnstcnJun 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
update go.mod
  • Loading branch information
@johnstcn
johnstcn committedJun 15, 2023
commit9a828823328e40ac0a8f522f63fb08586309c71f
8 changes: 5 additions & 3 deletionsgo.mod
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -215,7 +215,7 @@ require (
github.com/docker/docker v23.0.3+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/dustin/go-humanize v1.0.1
github.com/elastic/go-windows v1.0.0 // indirect
github.com/fxamacker/cbor/v2 v2.4.0 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
Expand DownExpand Up@@ -352,12 +352,14 @@ require (
inet.af/peercred v0.0.0-20210906144145-0893ea02156a // indirect
)

require github.com/gobwas/httphead v0.1.0
require (
github.com/dave/dst v0.27.2
github.com/gobwas/httphead v0.1.0
)

require (
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/dave/dst v0.27.2 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect
Expand Down
1 change: 1 addition & 0 deletionsgo.sum
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -230,6 +230,7 @@ github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxG
github.com/daixiang0/gci v0.2.9/go.mod h1:+4dZ7TISfSmqfAGv59ePaHfNzgGtIkHAhhdKggP1JAc=
github.com/dave/dst v0.27.2 h1:4Y5VFTkhGLC1oddtNwuxxe36pnyLxMFXT51FOzH8Ekc=
github.com/dave/dst v0.27.2/go.mod h1:jHh6EOibnHgcUW3WjKHisiooEkYwqpHLBSX1iOBhEyc=
github.com/dave/jennifer v1.5.0 h1:HmgPN93bVDpkQyYbqhCHj5QlgvUkvEOzMyEvKLgCRrg=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp