dotTrace
 
2021.3
Get dotTrace
You are viewing the documentation for an earlier version of dotTrace.

.NET Memory Allocations

Last modified: 01 October 2021

When .NET Memory Allocations is selected in the Events filter, Timeline Viewer shows you how your application allocated memory to the managed heap. For example, Call Tree shows how much memory (in MB) a particular call has allocated.

Select the .NET Memory Allocations event for analyzing excessive memory traffic and garbage collections. The latter are one of the main reasons of UI freezes as the main thread can be suspended during a GC.

Note that allocation point event is raised only after the size of allocated memory exceeds 100 KB in total. For example, a thread allocates five 50 KB memory blocks during profiling. In such a case, dotTrace will detect only two allocations of 100 KB.

Memory allocation 1

When you select the .NET Memory Allocations subject, Timeline Viewer adds the auxiliary .NET Memory Allocations: Heap filter to the Filters window.