mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-22 02:04:23 +00:00
When inline functions are aggregated into their base symbols in the sampling statistics, the inclusive counts were summed up, the same as the exclusive counts. This is wrong. Exclusive counts partition the samples, as each sample is attributed to exactly one symbol. Inclusive counts overlap: an inline function can only ever be on the stack within a frame group whose base is its parent symbol, so every sample counted for an inline function is also counted for the base symbol. Summing therefore counted the same sample multiple times, inflating the counts, the sort order and the displayed percentages, in the worst observed case by a factor of 7. The base symbol's own inclusive count is exactly the correct value for the aggregated entry, so use it directly.