Can snapshots be made without having the UI up?

Memory profiling for .NET developers

Can snapshots be made without having the UI up?

Postby haggard » Tue Nov 16, 2010 12:27 am

Our application is very large and processor intensive. The programmatic API to take snapshots is something that we think could be very useful. I've been asked to find out what if anything can be done to reduce the overhead of taking snapshots. For example, if a snapshot is manually triggered then not only is there effort put into taking the snapshot in the first place but also some effort goes into analyzing the results. In our case, we'd just like to take the snap but delay doing any analyzation until a later time. Is this possible? We'd also like to investigate to what degree is it possible to reduce the overhead involved in having the memory profiler active. My initial thoughts are that you can't take a snapshot without having the memory profiler active so there is little if anything that can be done to reduce the overhead involved in taking snapshots. Is this an accurate representation of the facts?
Richard Lewis Haggard
Posts: 4
Joined: Sun Nov 14, 2010 6:03 pm

Postby dom.smith » Tue Nov 16, 2010 10:58 am

Hi Richard,

You are correct in saying that you have to run the profiler while you take the snapshots. You might be able to reduce the profiler's overhead slightly by turning off the 'monitor disposal of objects' option while profiling, however, and by recording as few performance counters as possible.

On your other question, you can take the snapshots and then analyze the data later. When you have finished profiling your application, in ANTS Memory Profiler, go to the File menu and click Save Profiler Results... You can then use the Open Profiler Results... menu option to open the results later, when your application is not running.

Hope that helps,
Dominic Smith,
Project Manager,
Posts: 107
Joined: Thu Jun 03, 2010 5:54 pm
Location: Cambridge, UK

Return to ANTS Memory Profiler 7 EAP

Who is online

Users browsing this forum: No registered users and 0 guests