I've got a memory issue that I really want to measure at an exact point in the code tree to ensure that any modifications I make between run's are easy to compare results.
Is there a way to inject code (or markers) into the .net application that would ensure that the memory profiler took a snapshot at exactly the same place for each profile run? E.g. OnLargeProcessButton.Click AMPxx.Shapshot.....then do normal code.
Alternatively (really cool) would be if you could do the same things that the VS IDE breakpoints could do, aka, apply some sort of logic to code based snapshots. E.g. If collection.count =10,000 then AMPxx.Snapshot