Review Request 122487: Reorder member variables to reduce memory usage.

Volker Krause vkrause at kde.org
Mon Feb 16 08:42:20 UTC 2015


On Wednesday 11 February 2015 13:52:36 Thiago Jung Bauermann wrote:
> Volker Krause wrote:
> >> On Feb. 8, 2015, 8:45 p.m., David Faure wrote:
> >> > Which magic tool did you come up with this time, to detect such things?
> >> > 
> >> > :-)
> >> 
> >> Aleix Pol Gonzalez wrote:
> >>     +1 :D I too want to know!
> > 
> > It's still very much WIP, the code is in kde:scratch/vkrause/elf-dissector
> > but be aware that it still generates arbitrarily wrong output, there's
> > still many cases it's not detecting/handling correctly. And it'll likely
> > crash if you are not on x86_64 with a full debug build.
> 
> You can use the pahole utility in the dwarves set of utilities (dwarves
> package in Ubuntu).

I tried pahole, on simple C test cases it provides similar results (it seemed 
to count static members though), but on C++ libraries it just crashes here. 
Seems to use a very similar approach in general though.

regards,
Volker


More information about the Kde-frameworks-devel mailing list