mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-07 05:49:18 +00:00
The find zone samples list shares the drawing code with the sampling statistics window, which computed the percentage denominator from its own state: the whole-trace sample count, or the statistics range filter, if one was active. The find zone counts are scoped to the matched zones, so the percentages mixed two meanings in one table: the time column was relative to the zone selection while the count column was relative to the whole trace, and changing the range filter in the statistics window silently rescaled it. Pass the denominator from the caller. Find zone sums its zone-scoped counts, so both columns are now relative to the selection, and the statistics window computes the same denominator as before.