ANTS Profiler™
Walk-through 2: Memory profiling
This walk-through will show you:
- Setting up a project
- How to profile memory
- Viewing and understanding results
- Sorting, filtering, and grouping results
Step 4: ANTS Profiler launches your application
When you start profiling, ANTS Profiler launches your application and makes it active, so you can run through those parts of the application that you want to profile.
When ShapePainter runs, it draws 200 random shapes in the window. Each of the shapes on screen corresponds to an object on the managed heap.
When memory profiling, you need to take a snapshot to get profiler results, so we click the Take snapshot button in the ANTS Profiler toolbar.
Taking a snapshot creates a set of results corresponding to the current state of the application. We then continue to use the application – we click Add rectangles to create a further 10 rectangle objects. Then we switch back to the ANTS Profiler window, and click the Take snapshot button again, to create a second set of results.





