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.
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.