Files
tracy/server
Bartosz Taudul 3293e263c6 Exclude context switch samples from symbol and child sample maps.
Context switch samples are excluded from sampling statistics, as they
are not produced by the statistical profiling timer and their stacks
are always parked at the scheduler. During live capture this exclusion
is structural, as such samples never enter the statistics processing
path. On trace load, however, only the job which computes symbol
statistics and the instruction pointer map filtered them out. The job
which builds the per-symbol sample lists and the child sample map did
not, so on a loaded trace these two structures included tens of
thousands of context switch samples that a live session would not
count.

This made range-limited statistics counts exceed the whole-trace
counts, inflated child sample costs in the symbol view, and caused the
same trace to show different numbers live and after a save and reload.
On the test trace, __schedule reported 56 exclusive samples but 32747
entries in its sample list.

Apply the same context switch sample filter when building the symbol
samples and child samples maps.
2026-07-25 19:46:01 +02:00
..
2026-03-19 17:57:57 +03:00
2023-10-09 23:11:30 +02:00
2021-12-01 21:52:31 +01:00
2024-05-04 14:28:55 +02:00
2024-05-04 14:28:55 +02:00
2021-10-07 23:28:40 +02:00
2021-10-07 23:28:40 +02:00
2026-01-24 01:50:11 +01:00
2024-05-04 14:28:55 +02:00
2023-03-25 22:14:34 +01:00
2026-01-24 01:50:11 +01:00
2026-01-24 01:50:11 +01:00