Kevin Wan
36678f9023
chore: refactor stat ( #2299 )
2022-08-25 23:37:32 +08:00
Josh Quintana
90cdd61efc
Initialize CPU stat code only if used ( #2020 )
...
Co-authored-by: Josh Quintana <josh@highwaybenefits.com>
2022-08-25 22:05:29 +08:00
Kevin Wan
bab72b7630
chore: use time.Now() instead of timex.Time() because go optimized it ( #1860 )
2022-05-03 19:51:47 +08:00
Kevin Wan
3bbc90ec24
refactor: move json related header vars to internal ( #1840 )
...
* refactor: move json related header vars to internal
* refactor: use header.ContentType
2022-04-28 15:12:04 +08:00
Kevin Wan
cef83efd4e
fix #1838 ( #1839 )
2022-04-28 11:25:26 +08:00
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
2022-03-12 21:00:04 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
2022-01-04 15:51:32 +08:00
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
2021-09-29 13:09:20 +08:00
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
2021-09-23 19:57:05 +08:00
Kevin Wan
f4bb9f5635
fix test error on ubuntu ( #1048 )
2021-09-15 13:31:20 +08:00
Kevin Wan
3f47251892
fix proc.Done not found in windows ( #1026 )
2021-09-12 15:41:33 +08:00
Kevin Wan
db95b3f0e3
configurable for load and stat statistics logs ( #980 )
2021-08-31 17:14:31 +08:00
heyanfu
a5962f677f
fix some typo ( #677 )
2021-05-10 00:09:00 +08:00
Kevin Wan
c4b2cddef7
fix golint issues ( #532 )
2021-03-02 00:04:12 +08:00
Kevin Wan
490241d639
fix golint issues in core/syncx ( #526 )
2021-02-28 16:16:22 +08:00
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
2021-02-24 15:13:56 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
2021-02-09 13:50:21 +08:00
Kevin Wan
744c18b7cb
simplify cgroup controller separation ( #384 )
2021-01-13 20:58:33 +08:00
miaogaolin
8d6f6f933e
fix cgroup bug ( #380 )
2021-01-13 20:39:57 +08:00
kevin
695ea69bfc
add logx.Alert
2020-10-17 19:11:01 +08:00
kevin
4a639b853c
add more tests
2020-10-08 09:42:20 +08:00
kevin
1023425c1d
add more tests
2020-10-07 23:15:34 +08:00
kevin
360fbfd0fa
add more tests
2020-10-07 23:02:58 +08:00
kevin
1cc0f071d9
add more tests
2020-10-07 18:07:54 +08:00
kevin
5d8a3c07cd
disable cpu stat in wsl linux
2020-08-27 13:22:44 +08:00
kevin
0214161bfc
remove utils.Report
2020-08-17 18:05:56 +08:00
kevin
8745039877
move lang.Must into logx.Must to make sure output fatal message as json
2020-08-14 15:08:06 +08:00
kevin
0a7e0cce77
update package reference
2020-08-08 16:40:10 +08:00
kevin
7e3a369a8f
initial import
2020-07-26 17:09:05 +08:00