What are the challenges you face when working across database platforms? Take the survey

Code to trigger snapshots

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
Jamie Clayton
Senior Software Developer
Jenasys Design Pty Ltd, Australia


Sign In or Register to comment.