Red Gate forums :: View topic - Code to trigger snapshots
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

Code to trigger snapshots

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
Jamie Clayton



Joined: 21 Oct 2005
Posts: 14
Location: Brisbane, Australia

PostPosted: Thu Jun 10, 2010 11:55 am    Post subject: Code to trigger snapshots Reply with quote

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
Back to top
View user's profile Send private message MSN Messenger
nick.maidment



Joined: 29 Jan 2010
Posts: 74

PostPosted: Fri Jun 11, 2010 2:03 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group