Re: [PATCH v2 0/4] perf annotate: Improve memory usage for symbol histogram

From: Namhyung Kim
Date: Thu Mar 07 2024 - 16:48:56 EST


On Mon, 4 Mar 2024 15:08:11 -0800, Namhyung Kim wrote:
> This is another series of memory optimization in perf annotate.
>
> v2 changes:
> * fix a bug when offset is bigger than 16 bits
>
>
> When perf annotate (or perf report/top with TUI) processes samples, it
> needs to save the sample period (overhead) at instruction level. For
> now, it allocates an array to do that for the whole symbol when it
> hits any new symbol. This comes with a lot of waste since samples can
> be very few and instructions span to multiple bytes.
>
> [...]

Applied to perf-tools-next, thanks!

Best regards,
--
Namhyung Kim <namhyung@xxxxxxxxxx>