Skip to content

Commit 61e61f0

Browse files
jan-wassenbergcopybara-github
authored andcommitted
also mention perf-load
PiperOrigin-RevId: 809042084
1 parent 206be1a commit 61e61f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hwy/profiler.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ class ThreadSet {
304304
// `CountThreadsAndReset` then checks how many were nonzero, which avoids
305305
// expensive atomic updates and ensures accurate counts per-zone, rather than
306306
// estimates of current activity at each sample.
307+
// D. Vyukov's https://github.com/dvyukov/perf-load, also integrated into Linux
308+
// perf, also corrects for parallelism without using atomic counters by tracing
309+
// context switches. Note that we often pin threads, which avoids migrations,
310+
// but reduces the number of context switch events to mainly preemptions.
307311
class ConcurrencyStats {
308312
public:
309313
ConcurrencyStats() { Reset(); }

0 commit comments

Comments
 (0)