Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Clr Heap Allocation Analyzer
Clr Heap Allocation Analyzer

Clr Heap Allocation Analyzer

Mukul Sabharwal

|
12,944 installs
| (11) | Free
Clr Heap Allocation Analyzer is a Roslyn based Diagnostic Analyzer that is able to detect most allocations in code in the local method and bring them to your attention in Visual Studio. It can detect subtle allocations caused by value type boxing, closure captures, delegate in...
Download

Roslyn based C# heap allocation diagnostic analyzer.

It can detect most heap allocations including explicit allocations, value type to reference type (boxing), closure captures (a.k.a Display Classes) and can tell you why the closure is being captured. Implicit delegate creation and implicit allocations done by the compiler for params, etc.

It can also run as part of your build and flag as warnings. It is, however, most demonstrative in its code-assist form in the IDE.

Quick Video: https://www.youtube.com/watch?v=Tw-wgT-cXYU

https://github.com/Microsoft/RoslynClrHeapAllocationAnalyzer for the source.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft