dotTrace 2022.2 Help

Start Profiling Session

Your starting point in dotTrace is the Home window. Here you can start new profiling sessions or open snapshots collected in recent sessions.

Starting a profiling session on a local computer

To start profiling of an application

  1. Under Choose what you want to profile, select or create a run configuration.

  2. Under Choose how you want to profile it, specify profiling options.

  3. Under Run profiling, click Start.

To start profiling of an already running application

  1. Under Choose what you want to profile, Running Process, select the process you are going to profile. Alternatively, you can drag the Attach icon Attach icon onto the application window you want to attach to.

    If a process you are looking for is missing, click Show All Processes to grant dotTrace administrative permissions (this will show more processes running in the system).

    If you want to profile a native application, select Show native processes to see the native processes in the list.

  2. Under Choose how you want to profile it, specify profiling options. Note that:

    • Tracing and Line-by-line profiling types are not supported when you attach the profiler to a process.

    • Sampling profiling type is not supported if you profile a native application.

  3. Under Run profiling, click Start.

Starting a profiling session on a remote computer

You can profile .NET applications not only on the local computer, but on a remote computer as well. To profile remotely, you do not have to install dotTrace on a remote computer.

To start a profiling session on a remote computer

  1. On the remote computer, do the following:

    • Copy the RemoteAgent.zip file from the dotTrace installation directory on your local computer (by default, C:\Users\[username]\AppData\Local\JetBrains\Installations\dotTrace[N]) to any directory on the remote computer.

    • Unzip the file on the remote computer.

    • Start 'Remote Agent' from the console on the remote computer.

    • Make sure the inbound connections to 'Remote Agent' (by default, it uses port 9100) are not blocked by the firewall.

  2. On the local computer, start dotTrace as a standalone application.

  3. On the right from Choose what you want to profile, select Remote.

  4. In the Remote Connection Settings window, in Remote Agent URL, specify the address of the remote agent service. By default, net.tcp://[remote_computer_IP_address]:9100/RemoteAgent

  5. Click Connect to establish connection with the remote host.

  6. Depending on your task, follow the instructions on how to start and profile a new process or profile an already running process.

Last modified: 01 August 2022