|
From: 王 <wan...@cn...> - 2012-05-21 02:01:56
|
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. ************************************************ WangYang PSDCD DSDC Room401,15#,NO.23 Soft Park East Road ,Dalian,116023,P,R.China Tel:+86-411-8476-8550-6069 E-mail: wan...@cn... ************************************************ |
|
From: Julian S. <js...@ac...> - 2012-05-21 10:55:41
|
On Monday, May 21, 2012, 王� 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. I don't think there is a way to do that at the moment. J |
|
From: Philippe W. <phi...@sk...> - 2012-05-21 20:54:50
|
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
|