|
From: Tom H. <th...@cy...> - 2004-01-13 19:14:12
|
In message <200...@bl...>
Jason Wood <jas...@bl...> wrote:
> Does anyone know of a way to take a memory "snapshot" - something like a
> list of all memory currently allocated, grouped by the file line number of
> where it was allocated, and sorted by the amount of memory that is
> allocated. I feel that such a thing would let me solve this issue very
> quickly :-)
You can use the VALGRIND_DO_LEAK_CHECK client request in your program
to request a leak check at any time and if you used --show-reachable=yes
when starting valgrind then it will show all blocks, but I'm afraid
you'll have to handle the resorting of the output yourself.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|