From ec6214138801d80045e916479a1f8297c40de8e3 Mon Sep 17 00:00:00 2001 From: Daniel Hodges Date: Thu, 20 Feb 2020 05:36:33 -0500 Subject: 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 Signed-off-by: Daniel Hodges Signed-off-by: Daniel Hodges Co-authored-by: jdamato-fsly <55214354+jdamato-fsly@users.noreply.github.com> --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index f017b57..68022ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 -- cgit v1.2.3