Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.75 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.75 KB

Reflection IT - Clr Heap Allocation Analyzer

This project is a fork of the archived RoslynClrHeapAllocationAnalyzer project. This allowed us to add new features for .NET6 and later to it. These newer targetframeworks have features which don't allocate objects any more which the original analyzer was still reporting. For example:

  • .NET6 string interpolation does not cause Boxing any more.
  • C# 11.0 doesn't cause a Type Conversion Allocation when creating a delegate to a Static Member.

NuGet packages

Package Version
ReflectionIT.ClrHeapAllocationAnalyzer NuGet

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

Roslyn based C# heap allocation diagnostic analyzer that can detect explicit and many implicit allocations like boxing, display classes a.k.a closures, implicit delegate creations, etc.

You can find also install the Visual Studio Extension from the Visual Studio Marketplace, https://marketplace.visualstudio.com/items?itemName=FonsSonnemans.ClrHeapAllocationAnalyzer

example

Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.