mosn / holmes

self-aware Golang profile dumper
Apache License 2.0
1.06k stars 135 forks source link

perf: get cgroup cpu core #137

Open istudies opened 1 year ago

istudies commented 1 year ago
  1. optimize getCGroupCPUCore() to return the number of CPU cores when the value cannot be obtained.
  2. optimize the use of WithCGroup() and WithGoProcAsCPUCore() together, and WithCGroup() has a higher priority.
Jun10ng commented 1 year ago

LGTM

@doujiang24