On Mon, Mar 2, 2009 at 9:11 AM, Chris Packham <[email protected]> wrote:
>
> Is there a way to trigger a valgrind tool to generate its output
> without the program exiting. I'm looking at memory consumption/leaks
> in system daemons that don't normally exit. So after a certain period
> in a test I'd like to have <insert tool of choice here> generate its
> output so I can start looking at it but keep going so I can do it
> again later.
>
> I vaguely recall being told that we are able to send a signal to cause
> valgrind to trigger the tool to print its report.
>
> The tools I'm using are memcheck and massif with valgrind version
> 3.3.1 (haven't got round to cross compiling 3.4.0 yet).

You can ask for a leak-check mid-execution.
See VALGRIND_COUNT_LEAKS and VALGRIND_DO_LEAK_CHECK at
http://www.valgrind.org/docs/manual/mc-manual.html#mc-manual.clientreqs

Callgrind also has some mid-execution dump facilities.  Massif doesn't, though.

Nick

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to