Bug 424149

Summary: Client requests to trigger snapshots
Product: [Developer tools] valgrind Reporter: simon.hafner
Component: massifAssignee: Nicholas Nethercote <njn>
Status: REPORTED ---    
Severity: normal CC: mark
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: patch

Description simon.hafner 2020-07-13 11:29:05 UTC
Created attachment 130081 [details]
patch

For measuring memory usage in defined portions of code, it's easier to segregate them using client requests. This patch implements them. I'm not sure how to implement the flag for stopping automatic snapshots.
Comment 1 Mark Wielaard 2021-02-20 22:13:34 UTC
Running massif without automatic snapshots seems a little odd. But maybe it could be a command line flag so that it only snapshots from vgdb or through a client request?

Do you have some example program that use the new client requests?
Bonus points for one that can be used as new test and for documentation.