dotTrace 2017.1 Help

Profile Static Method

Profiling of static methods is based on the ReSharper's 'run configurations' feature. This feature 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 dotTrace shares the ReSharper platform, it is able to profile any run configuration including the ones for static methods.

To profile a static method run configuration:

  1. Open your solution in Visual Studio.
  2. Open the file containing a static method you want to profile.
  3. Open the action list for the method by placing cursor on the method and pressing Alt+Enter.
  4. In the list, select Debug | Profile([profiling_type]). Note that this session will use the profiling type that is currently selected in the Performance Profiler window. To change the profiling type, open the window using the ReSharper | Profile | Open Performance Profiler menu and select the required profiling type in the drop-down list.
  5. Specify run configuration parameters and click Execute to start profiling or Save and Execute to save this run configuration and start profiling.
  6. 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.
  7. Analyze the collected snapshot either in the Performance Viewer or Timeline Viewer (depends on the profiling type you select).
Last modified: 24 August 2017