mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-17 07:44:23 +00:00
During live capture, child samples were appended to their per-address vectors in arrival order. Samples postponed due to missing context switch data are replayed after newer samples were already processed, so the vectors could become unordered. All range-limited queries binary search these vectors by time and would silently return wrong results. Inserting in sorted order at collection time would require a mid-vector insertion for every stack frame of every replayed sample, so instead the vectors are now SortedVector and are sorted lazily when accessed, following what the inline symbol list already does. This also restores proper query results for traces with inconsistent sample order.
291 KiB
291 KiB