Red Gate forums :: View topic - Taking snapshots while breakpointing C# application
Return to www.red-gate.com RSS Feed Available

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

Taking snapshots while breakpointing C# application

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
SCPP



Joined: 23 Aug 2011
Posts: 7

PostPosted: Mon Jan 30, 2012 4:33 am    Post subject: Taking snapshots while breakpointing C# application Reply with quote

Hi,

Just wondering if it is possible to take snapshots while the program has hit a breakpoint. Basically what I have done is started memory profiling then attached my debugger and set some breakpoints.

I want to work out which calls in a particular large method are allocating varying amounts of memory from one version of our application to a newer version.

Currently the "Taking snapshot" is frozen so I'm guessing that Memory Profiler requires the app to not have threads paused. Is there a recommended way to test this scenario?

Thanks in advance!
SC
Back to top
View user's profile Send private message
jrg



Joined: 02 Jul 2010
Posts: 13

PostPosted: Mon Jan 30, 2012 11:42 am    Post subject: Reply with quote

You could use the snapshot API to take a snapshot at a particular point in your code, in place of using breakpoints.

http://www.red-gate.com/supportcenter/content/ANTS_Memory_Profiler/help/7.2/amp_snapshot_api

(You're correct that snapshots can't be taken when all the threads are paused in a debugger)
_________________
Test Engineer, .NET Division
Red Gate Software
Back to top
View user's profile Send private message
SCPP



Joined: 23 Aug 2011
Posts: 7

PostPosted: Tue Jan 31, 2012 2:31 am    Post subject: Re: Reply with quote

jrg wrote:
You could use the snapshot API to take a snapshot at a particular point in your code, in place of using breakpoints.

http://www.red-gate.com/supportcenter/content/ANTS_Memory_Profiler/help/7.2/amp_snapshot_api

(You're correct that snapshots can't be taken when all the threads are paused in a debugger)

Thanks
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