On Mon, 2012-05-21 at 10:01 +0800, 王?? wrote:
> Hello everyone.
> 
> 
> Massif is a heap and stack profiler, I have a question about massif when I
> use it. It is that I can’t get the output log(massif.out.pid) until the
> program tested is over. If the program tested is just like endless while
> sentence, how can I get the massif log. Thank you.

If you have Valgrind 3.7.0, you can do on-demand massif snapshot
using:
    vgdb snapshot
or
    vgdb detailed_snapshot

For more info, see user manual e.g.
http://www.valgrind.org/docs/manual/ms-manual.html#ms-manual.monitor-commands

Alternatively, you can do snapshot on demand from a gdb connected
to the Valgrind gdbserver.

Philippe



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to