The .NET Memory Profiler API can be used to retrieve memory usage information, perform memory assertions, and collect memory snapshots from within a profiled process. This API is intended to be used for automatic memory testing with the help of .NET Memory Profiler or NmpCore. The SciTech.NmpDataCollector package can be used to easily run a unit test library using NmpCore. For more information, see http://memprofiler.com/, http://memprofiler.com/nmpcore.aspx, and http://memprofiler.com/apiexamples.aspx. Note that this API requires .NET Memory Profiler or NmpCore version 5.7 or later.
$ dotnet add package SciTech.MemProfilerApiNo README available.