dotMemory 2023.3 Help

Profile Static Method

Profiling of static methods is based on the ReSharper's run configurations feature. It gives you an ability to create a number of predefined configurations with different run parameters for your startup project, an arbitrary executable, or even any static method. As dotMemory shares the ReSharper platform, it is able to profile any run configuration including the ones for static methods.

  1. Open your solution in Visual Studio.

  2. Open the file containing the static method you want to profile.

  3. Place the caret at the method and press

  4. In the list, select Debug method | Profile (Memory) method.

  5. The profiled method will be run under a special JetLauncher process. After the method finishes working, the process will offer you to press any key. This will end the process and take a snapshot.

  6. Analyze the collected snapshot.

Last modified: 01 September 2023