Commit Graph

50 Commits (ec4188047615c6bc4272a74a83d0118630a67c63)

Author SHA1 Message Date
Kevin Wan 5263805b3b
chore: simplify linux nocgroup logic (#3949) 9 months ago
Alex Last a7363f0c21
feat: add nocgroup build tag for systems without cgroup (#3948) 9 months ago
Kevin Wan 914bcdcf2b
chore: add tests (#3931) 9 months ago
Kevin Wan 786a80131e
chore: fix test failure (#3883) 10 months ago
Kevin Wan c08e741d7a
fix: cpu stat in cgroup v2 (#3857) 10 months ago
Kevin Wan 81d72b5010
chore: make cpu usage more smooth (#3842) 10 months ago
Kevin Wan b176d5d434
chore: add more tests (#3359) 1 year ago
Kevin Wan 4a2a8d9e45
chore: add more tests (#3279) 2 years ago
Kevin Wan a9aac7e420
chore: add more tests (#3265) 2 years ago
Kevin Wan 99ce24e2ab
chore: add more tests (#3260) 2 years ago
Kevin Wan 701bb31ed2
chore: add more tests (#3259) 2 years ago
Kevin Wan 9fc7874336
chore: optimize stat calculation (#3213) 2 years ago
Kevin Wan 14caf5c799
chore: simplify tests with logtest (#3184) 2 years ago
Kevin Wan 0ab06f62ca
chore: add more tests (#3045) 2 years ago
Kevin Wan 3a493cd6a6
chore: add more tests (#3006) 2 years ago
Kevin Wan ae87114282
chore: change interface{} to any (#2818)
* chore: change interface{} to any

* chore: update goctl version to 1.5.0

* chore: update goctl deps
2 years ago
Kevin Wan fdc57d07d7
fix: #2672 (#2681)
* fix: #2672

* chore: fix more cases

* chore: update deps

* chore: update deps

* chore: refactor

* chore: refactor

* chore: refactor
2 years ago
Tim Xiao 944193ce25
fix:Remove duplicate code (#2686) 2 years ago
王哈哈 dac3600b53
Modify comment syntax error (#2572) 2 years ago
Kevin Wan 46e236fef7
chore: add more tests (#2547) 2 years ago
Kevin Wan 22d0a2120a
chore: replace fmt.Fprint (#2425) 2 years ago
Kevin Wan 36678f9023
chore: refactor stat (#2299) 2 years ago
Josh Quintana 90cdd61efc
Initialize CPU stat code only if used (#2020)
Co-authored-by: Josh Quintana <josh@highwaybenefits.com>
2 years ago
Kevin Wan bab72b7630
chore: use time.Now() instead of timex.Time() because go optimized it (#1860) 3 years ago
Kevin Wan 3bbc90ec24
refactor: move json related header vars to internal (#1840)
* refactor: move json related header vars to internal

* refactor: use header.ContentType
3 years ago
Kevin Wan cef83efd4e
fix #1838 (#1839) 3 years ago
Kevin Wan c05d74b44c
feat: support cpu stat on cgroups v2 (#1636)
* feat: cpu stat

* feat: add cpu stat for cgroup2

* feat: add cpu stat for cgroup2, tidy mod

* feat: support cpu stat in cgroup v2
3 years ago
Kevin Wan a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 3 years ago
Kevin Wan 65905b914d
ci: add reviewdog (#1096) 3 years ago
Kevin Wan 8403ed16ae
ci: add Lint check on commits (#1086)
* ci: add Lint check on commits

* ci: fix Lint script error

* test: fix go vet errors

* test: fix go vet errors, remove gofumpt to check go vet

* test: fix go vet errors, try gofumpt

* test: fix go vet errors, try gofumpt, round 1

* test: fix go vet errors, try gofumpt, round 2

* ci: fix Lint errors
3 years ago
Kevin Wan f4bb9f5635
fix test error on ubuntu (#1048) 3 years ago
Kevin Wan 3f47251892
fix proc.Done not found in windows (#1026) 3 years ago
Kevin Wan db95b3f0e3
configurable for load and stat statistics logs (#980) 3 years ago
heyanfu a5962f677f
fix some typo (#677) 4 years ago
Kevin Wan c4b2cddef7
fix golint issues (#532) 4 years ago
Kevin Wan 490241d639
fix golint issues in core/syncx (#526) 4 years ago
Kevin Wan acdaee0fb6
fix golint issues in core/stat (#515)
* change to use ServiceGroup to make it more clear

* fix golint issues in core/stat
4 years ago
Kevin Wan 5e969cbef0
fix golint issues, else blocks (#457) 4 years ago
Kevin Wan 744c18b7cb
simplify cgroup controller separation (#384) 4 years ago
miaogaolin 8d6f6f933e
fix cgroup bug (#380) 4 years ago
kevin 695ea69bfc add logx.Alert 4 years ago
kevin 4a639b853c add more tests 4 years ago
kevin 1023425c1d add more tests 4 years ago
kevin 360fbfd0fa add more tests 4 years ago
kevin 1cc0f071d9 add more tests 4 years ago
kevin 5d8a3c07cd disable cpu stat in wsl linux 4 years ago
kevin 0214161bfc remove utils.Report 4 years ago
kevin 8745039877 move lang.Must into logx.Must to make sure output fatal message as json 4 years ago
kevin 0a7e0cce77 update package reference 4 years ago
kevin 7e3a369a8f initial import 4 years ago