- System requirements
- Profiler architecture
- Running the profiler
- Profiler activation
- Start profiling
- Connect to profiled application
- Capturing snapshots
- Solving performance problems
- CPU profiling
- Memory profiling
- Memory telemetry
- Object allocation recording
- Shallow and retained sizes
- Memory views
- Memory inspections
- Comparing memory snapshots
- Values of primitive types
- Useful actions
- Garbage collection
- Exception profiling
- Probes: monitor higher level events
- Performance Charts
- Inspections: automatic recognition of typical problems
- Automatically trigger actions on event
- Summary, snapshot annotation, automatic deobfuscation
- Time measurement (CPU time, wall time)
- Snapshot directory customization
- Export of profiling results to HTML, CSV, XML, plain text
- Profiler API
- Profiler HTTP API
- Command line tool to control profiling
After you are connected to the profiled application, find the Memory tab on the session panel.
Memory profiling controls in the toolbar
|Capture memory snapshot - save the profiling results to a file for comprehensive analysis|
|Start/stop object allocation recording|
|Reset recorded object allocations and continue recording|
|Explicitly run garbage collector in the profiled application|
Memory usage graphs
Memory tab's section Memory & GC Telemetry shows the following graphs:
CLR Heap shows the managed memory usage statistics. CLR heap is the storage for managed CLR objects. You can see individual generations or all generations together.
Process Memory shows the entire process memory usage, including managed and unmanaged memory.
Classes shows how the number of loaded classes changed in time, and the total number of unloaded classes.
Garbage Collection and Time Spent in GC show the garbage collection statistics (read more)
Object Allocation Recording graph shows the number of objects created per second. Please note that this graph is populated only when object allocation recording is running.
The telemetry information is remembered in a circular buffer in the profiler agent memory. This allows you to connect to a profiled application on demand and discover how the application behaved in the past.
The buffer capacity is 1 hour by default, and can be changed with the startup option
Class instance count telemetry
Classes view shows object counts by class. It is located on the Memory tab.
This view is available when the profiler is connected to a running application, allowing to instantly learn object counts without capturing and opening a memory snapshot.
This view is also available in performance snapshots, but is not available in memory snapshots being superseded with objects view.
The presented information can be useful as an overview of memory consumed by the profiled application and also as a clue to detecting memory leaks. For details, see How to find out why application eats that much memory? and How to find memory leaks?
Memory tab's section Allocations shows counts and sizes for objects whose allocations have been recorded, including objects which are still alive as well as objects that have been collected by the moment.
This live view provides only basic information, and you still need to capture memory snapshot to perform comprehensive analysis: to separate live objects from dead objects, to see where live objects are retained, etc.