I've been playing with Performance Monitor in Windows 7 and have been able to create a data collector set that monitors a process and logs an alert when Private Bytes exceeds some threshold. I want to use this when we run certain tests as a crude catch for major memory leaks.
It seems like I have to start my application, then manually start the data collection set. Is there some way that the data collection set can just stay running, even when the process it monitors isn't running? If that's not possible, is there a way that I can tie the starting of the data collection set to the starting of my application?