CodeTrack: Attach to a running process

Back to How To

This can be used to profile a .NET process that's already running. (This is only available for .NET 4.0 and up)

Bear in mind that if your process needs to be elevated you need to run the profiler elevated as well (you can do this by clicking on the elevation icon icon the title bar, or run the profiler as admin).

  1. Select the collect tab (on the left of the application)
  2. Select ‘Running Process’ and click the arrow on the right to go to the next step.


  3. Select the process you want to profile.
    If you don't see your process, try clicking the refresh button. If you still don't see it make sure it is .NET4.0 or up AND you are elevated if necessary.




    Now we are ready for the last step, click on the right arrow to continue.

  4. In this last section you need to select the destination of the profiling data.

    If you need to profile on a very slow machine,one with little RAM, or a production server, you can disable the processing of the data. This allows you to do the number crunching offline on another machine.



    If you want to start profiling immediately, make sure you click the record button, otherwise click the pause button and hit record from the moment you want to start capturing data.
    Now you are ready to start profiling. If you click the play button, thr profiler will attach to your process.
    If you press the stop button Codetrack will detach from your process. You can also just end the process from your own application if desired.