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.
Many fixes and updated to work with Visual Studio 2017.
Visual Studio 2015 RTMd today and with it the CLR Heap Allocation Analyzer has been updated to RTM bits as well.
The project has been upgraded to work for Visual Studio 2015 RC.
Thanks to @stebet and @jmarolf for the RC and CTP6 upgrades.
The project has been updated to work with CTP6 release of Visual Studio 2015.
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!
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
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