I'm developing / prototyping a solution to test memory leaks in a WPF Application,
Using .Net Memory Profile Api and 'SciTech.NetMemProfiler.Core.dll' in a Continuous Integration workflow.
This is done by launching a Virtual Machine, Running the application and attaching to the process:
int processId = process.Id; // Id of process
ProfilerApplicationCore application = new ProfilerApplicationCore();
ProfileProcessStartInfo profileProcessStartInfo = new ProfileProcessStartInfo(ProfilingType.Attach, "test.exe");
profileProcessStartInfo.ProcessId = processId;
profileProcessStartInfo.AttachType = AttachType.NoAPI;
profileProcessStartInfo.UseDumpFile = true;
// Create session
using (ActiveSession activeSession = application.CreateSession(profileProcessStartInfo))
// Start it
// Collect a snapshot
This is working in the developing machine with .Net Memory Profiler Installed.
I have two questions regarding this solution:
1. How can I have this running in a Virtual Machine without installing every time the .NEt Memory Profile Application? A nuget packge would be awesome!
2. Regarding the license, I just need a license, Standard Edition, per Virtual Machine?
- The internal .NET Memory Profiler API, the NmpCore task, and the NmpDataCollector are available as NuGet packages (SciTech.MemProfilerApi, SciTech.NmpCore.Task, SciTech.NmpDataCollector), but then snapshots can only be collected from within the profiled process. The external API, that allows you to start profiling and collect snapshots from an external process is not available as a NuGet package. If you are not able to keep the VM image between runs, you will unfortunately need to install .NET Memory Profiler each time.
- The internal APIs and related Nuget packages don't require a license. However, using the external 'SciTech.NetMemProfiler.Core.dll' API requires a Professional edition license. Note that .NET Memory Profiler is licensed per named user, so you don't need a license per virtual machine. Instead each user managing the VMs requires a license.
SciTech Software AB
Users browsing this forum: Bing [Bot] and 12 guests