Visual Studio Integration
.NET Memory Profiler can be integrated into Visual Studio 2015, Visual Studio 2017, and Visual Studio 2019. This integration allows you to start profiling processes within the development environment, as well as to open previously stored session files.
Working with .NET Memory Profiler within Visual Studio is very similar to working with the stand-alone version, but some differences exist.
In Visual Studio, each session (active or previously stored) is presented in an editor window that gives you the possibility of working with multiple sessions simultaneously.
Profiling is started using the same commands as the stand-alone version (Profile Application, Profile ASP.NET, Profile Service and Attach to Process), except that the commands are located in the Profiler menu and the Attach to Process command is named Attach to Profiler Process. In Visual Studio it is also possible to start profiling a Visual Studio project in a solution. For more information see the next topic.