mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-02 08:28:30 +00:00
perf_event_open(pid>0, cpu>=0) binds to a single task, so the previous setup only sampled the target's main thread. In monitor mode, enumerate /proc/<pid>/task/ and open one per-task event per existing thread with cpu=-1; inherit=1 then covers every descendant. Self-profiling behavior is preserved byte-for-byte: the iter list becomes (currentPid, i) for each CPU, exactly what the old code did inline.
55 KiB
55 KiB