Commit Graph

8 Commits

Author SHA1 Message Date
David Zhao
c9e9ae555f Add license headers & NOTICE (#429)
* Add license headers & NOTICE

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-27 16:43:25 -07:00
David Colburn
cda2a8ac91 Use floats for cpu (#410)
* use floats for cpu

* change CPUStats.NumCPU

* missed a return
2023-06-29 18:29:18 -07:00
Benjamin Pracht
0644d9a979 Fix NumCPU implementation for cgroup v1 (#409) 2023-06-29 16:07:10 -07:00
Mikhail Chekh
89c91393d0 Fix call numCPU in root cgroup (#388) 2023-05-31 10:14:46 -07:00
Benjamin Pracht
802309c658 Work around phantom CPU core reporting in group v1 (#337) 2023-04-05 12:46:50 -07:00
Benjamin Pracht
b1eab0ff38 Fallback to osstat if a matching cgroup implementation cannot be found, and fix core count computation (#249)
This should fix WSL2 support.
2022-11-11 11:21:45 -08:00
Benjamin Pracht
2a4be29988 Add support for cgroup v1 to cpu stats function (#232) 2022-10-19 11:24:40 -07:00
Benjamin Pracht
9b09be77ef Cgroup aware idle CPU computation (#229)
On linux, this will report the amount of idle CPU relative to the cgroup defined quota. On other OSs, the idle cpu for the whole host is reported
2022-10-17 15:12:12 -07:00