From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f3f3bded7ff60ce8,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Memory profiling Date: Fri, 27 May 2005 14:51:52 +0200 Message-ID: <429717E8.6030806@mailinator.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net jTm1TLoYJnOHPbnhKPW00Q07j97HpdJSGOEzcgaVFpAtpQJvo= User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en Xref: g2news1.google.com comp.lang.ada:11180 Date: 2005-05-27T14:51:52+02:00 List-Id: Hello, I'm wondering if there exists some utility -maybe gdb based- that would allow to run a program and at a given time interrupt it and dump the heap usage classified by the pointer types. For example: Heap allocation for process : Type_X_Access: 24.5 MB Type_Y_Access: 225.3 KB ... I bet this could be very useful for memory usage profiling and optimization. I've just seen Massif from the Valgrind toolsuite and I'm going to read more about it. If someone can confirm this is in the right path... I suppose something similar can be achieved using distinct storage pools for each access type being tracked, but I find this more inconvenient. Ummm, maybe a type holding a list of storage pools created on demand... So, any suggestions in this direction?