Snapshots are very slow
Published 14 May 2018
Snapshots can be very slow, because they collect a lot of information down to the level of each individual object.
In ANTS Memory Profiler 8.1, you can choose to collect slightly less information in a snapshot, to make snapshots faster.
How much snapshots will speed up depends on the structure of your application. Applications which keep lots of data in arrays and as value types are likely to see the biggest benefits. Applications which have most of their data in reference types won't see much improvement.
To collect less data, when setting up a profiling session, select Make snapshots faster by leaving object values.
If you want to collect some types of object values but leave others out, click Customize.
The types of object values are:
- Contents of arrays
Leaving out array contents will give the greatest benefits.
If you don't select this option, taking snapshots may still be quite slow.
- Values of strings
- Values of objects
Values for any other objects apart from arrays and strings.