Code to trigger snapshots

Memory profiling for .NET developers

Moderators: StephenC, Alex.Davies, AndrewH, melvyn.harbour

Code to trigger snapshots

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

G'day,
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: Fri Oct 21, 2005 12:44 am
Location: Brisbane, Australia

Postby nick.maidment » Fri Jun 11, 2010 2: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.
nick.maidment
 
Posts: 74
Joined: Fri Jan 29, 2010 1:55 pm


Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests