Bug 424149 - Client requests to trigger snapshots
Summary: Client requests to trigger snapshots
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: massif (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Nicholas Nethercote
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-13 11:29 UTC by simon.hafner
Modified: 2021-02-20 22:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
patch (8.92 KB, patch)
2020-07-13 11:29 UTC, simon.hafner
Details

Note You need to log in before you can comment on or make changes to this bug.
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.