Ascon.NetMemoryProfiler 1.0.2

ASCON NetMemoryProfiler is a set of APIs for memory analysis of .NET processes

There is a newer version of this package available.
See the version list below for details.
Install-Package Ascon.NetMemoryProfiler -Version 1.0.2
dotnet add package Ascon.NetMemoryProfiler --version 1.0.2
<PackageReference Include="Ascon.NetMemoryProfiler" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ascon.NetMemoryProfiler --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ascon.NetMemoryProfiler, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Ascon.NetMemoryProfiler as a Cake Addin
#addin nuget:?package=Ascon.NetMemoryProfiler&version=1.0.2

// Install Ascon.NetMemoryProfiler as a Cake Tool
#tool nuget:?package=Ascon.NetMemoryProfiler&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Ascon.NetMemoryProfiler is a set of APIs for memory analysis of .NET processes. It allows you to attach to live processes or open crash dumps to inspect which .NET objects are hold in memory, and what prevents these objects from being collected by GC. Below you'll find a minimalistic sample of using Ascon.NetMemoryProfiler:

// Attaching profiler to the process "MyApp"
// After being attached, profiler injects into process and forces garbage collection in it
using (var session = Profiler.AttachToProcess("MyApp"))
{
	// Finds alive instances of "MyApp.Foo"
	var objects = session.GetAliveObjects(x => x.Type == "MyApp.Foo");
	// Finds retention paths (paths from GC roots which prevent instances from being collected)
	var retentions = session.FindRetentions(objects);
}

Ascon.NetMemoryProfiler is a set of APIs for memory analysis of .NET processes. It allows you to attach to live processes or open crash dumps to inspect which .NET objects are hold in memory, and what prevents these objects from being collected by GC. Below you'll find a minimalistic sample of using Ascon.NetMemoryProfiler:

// Attaching profiler to the process "MyApp"
// After being attached, profiler injects into process and forces garbage collection in it
using (var session = Profiler.AttachToProcess("MyApp"))
{
	// Finds alive instances of "MyApp.Foo"
	var objects = session.GetAliveObjects(x => x.Type == "MyApp.Foo");
	// Finds retention paths (paths from GC roots which prevent instances from being collected)
	var retentions = session.FindRetentions(objects);
}

Release Notes

-fixed NUnit compatibility

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.4 282 4/20/2020
1.0.3 640 6/27/2018
1.0.2 648 11/16/2017
1.0.1 607 11/14/2017