|
From: WAROQUIERS P. <phi...@eu...> - 2011-08-02 13:42:13
|
If you want to have a snapshot at a specific point in your
application, you can do that with the last (not yet released) SVN
version.
If your application is waiting before exiting (e.g. waiting to click on
a
"quit" button), then you can use "vgdb snapshot" (or "vgdb
detailed_snapshot")
from a shell command line.
Otherwise, you use gdb to connect to the Valgrind gdbserver
(start valgrind with --vgdb-error=0, then follow the instructions
on the screen), put a break where you want to take a snapshot,
and then from gdb, use:
monitor snapshot
(or monitor detailed_snapshot).
Philippe
>-----Original Message-----
>From: Brian Budge [mailto:bri...@gm...]
>Sent: Tuesday 2 August 2011 00:58
>To: val...@li...
>Subject: [Valgrind-users] massif snapshot at given time?
>
>Hi all -
>
>I'm new on the list, so hopefully I won't make any faux-pas :) I've
>been playing with massif, and it seems like a pretty useful tool.
>Here's what I'm currently bumping up against: I can track all of my
>major allocations until my program exits. I'd like to get one last
>dump right at exit that shows a profile of the memory at that point.
>Since my memory is somewhat reduced just before exit, I think massif
>is not dumping new information.
>
>It could also be that I'm a newbie to massif, and I'm misinterpreting
>the results. Any help is appreciated.
>
>Thanks,
> Brian
>
>---------------------------------------------------------------
>---------------
>BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>The must-attend event for mobile developers. Connect with experts.
>Get tools for creating Super Apps. See the latest technologies.
>Sessions, hands-on labs, demos & much more. Register early & save!
>http://p.sf.net/sfu/rim-blackberry-1
>_______________________________________________
>Valgrind-users mailing list
>Val...@li...
>https://lists.sourceforge.net/lists/listinfo/valgrind-users
>
____
This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.
Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy.
Any views expressed in this message are those of the sender.
|