Code to trigger snapshots

Memory profiling for .NET developers

Code to trigger snapshots

Postby Jamie Clayton » Thu Jun 10, 2010 10:55 am

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
Jamie Clayton
Posts: 14
Joined: Thu Oct 20, 2005 11:44 pm
Location: Brisbane, Australia

Postby nick.maidment » Fri Jun 11, 2010 1:03 pm

Hi jamie,

This isn't something the profiler can do at the moment but I've added your comments to the feature request so it can be considered for future releases.
Posts: 74
Joined: Fri Jan 29, 2010 12:55 pm

Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests