RoslynClrHeapAllocationAnalyzer Versions Save

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.

3.0

4 years ago

2.0

5 years ago

1.6

5 years ago

Many fixes and updated to work with Visual Studio 2017.

1.5

8 years ago

Visual Studio 2015 RTMd today and with it the CLR Heap Allocation Analyzer has been updated to RTM bits as well.

1.4

9 years ago

The project has been upgraded to work for Visual Studio 2015 RC.

Thanks to @stebet and @jmarolf for the RC and CTP6 upgrades.

1.3

9 years ago

The project has been updated to work with CTP6 release of Visual Studio 2015.

1.2

9 years ago

Grrr. A bug in the following case:

foreach (var a in b) { .. } // always resulted in heap allocation notice (false positive), which was a regression.

Unit tests are almost done!

1.1

9 years ago

Rosly 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.

NOTE: Requires Visual Studio 14 CTP 4

example

1.0

9 years ago

Rosly 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.

NOTE: Requires Visual Studio 14 CTP 4

example