Fix num cpu (#1561)
* add a map of profilers to CPUids `runtime.NumCPU()` returns the number of CPUs that the process can run on. This number does not necessarily correlate to CPU ids if the affinity mask of the process is set. This change maintains the current behavior as default, but also allows the user to specify a range of CPUids to use instead. The CPU id is stored as the value of a map keyed on the profiler object's address. Signed-off-by: Joe Damato <jdamato@fastly.com> Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com> Signed-off-by: Daniel Hodges <hodges@uber.com> Co-authored-by: jdamato-fsly <55214354+jdamato-fsly@users.noreply.github.com>
This commit is contained in:
parent
b40954dce5
commit
ec62141388
4 changed files with 215 additions and 36 deletions
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
### Changes
|
||||
|
||||
* [ENHANCEMENT] Add `--collector.perf.cpus` to allow setting the CPU list for perf stats.
|
||||
* [CHANGE] Add `--collector.netdev.device-whitelist`. #1279
|
||||
* [CHANGE] Refactor mdadm collector #1403
|
||||
* [CHANGE] Add `mountaddr` label to NFS metrics. #1417
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue