Files
tracy/server
Bartosz Taudul b68fe43335 Keep context switch sample vectors sorted.
Context switch samples were appended in arrival order. Samples which
were postponed due to missing context switch data are replayed after
newer samples were already classified, so the vector could become
unordered. Everything that reads it assumes time order: the wait stacks
range filter, the sampling statistics percentage denominator, and the
context switch sample filters in the trace load jobs. In the load jobs
an unordered vector could silently disable the filtering for the rest
of a thread, reintroducing the context switch samples into the symbol
and child sample maps.

Use a SortedVector and restore the ordering at the points where it can
break: after the postponed sample replay and when saving a trace. The
save file version is bumped, so that the sort order check on load is
only performed for traces saved by previous versions.
2026-07-25 23:02:13 +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