malt icon indicating copy to clipboard operation
malt copied to clipboard

Per code line memory fragmentation at peak

Open svalat opened this issue 6 years ago • 1 comments

Measure memory fragmentation at peak time or on an event based on signals.

We have the list for allocated segments, size, pointer and know the mmap list so we can compute how much we loose before and after each segment.

The real overhead is after or before but this is not strictly exact we can take average or before + after to just get an idea.

The nice thing is we can map on the related line.

svalat avatar Aug 29 '19 15:08 svalat

I was thinking to also have a more correct analysis in post mortem with trace enabled but that can provide an intermediate way without going directly to traces.

svalat avatar Aug 29 '19 15:08 svalat