CodeTrack: Profiling an executable
This can be used to profile any process that can be started by the profiler. This can be any .NET application (including
console apps, windows forms, WPF, …).
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).
- Select the collect tab (on the left of the application)
- Select ‘Process’ and click the arrow on the right to go to the next step.
- Now you can select the executable you want to profile. If your process needs startup arguments, you can specify
The bittness and DotNet version should be selected automatically. Should this be incorrect, you can still change this manually.
Now click the arrow on the right to go to the next step.
Now it's time to decide upon your level of detail. Important to remember, is that the more detail you require, the higher
the impact profiling will have on your performance. If you just started investigating a problem, it might
be a good idea to use the sampling option. Since this will be the most performant profiling mode. From this
information you can then start another session with much more detail, profiling only the code that causes
the performance issue.
For more information about the different profiling settings, read
Now we are ready for the last step, click on the right arrow to continue.
In this last section you need to select the destination of the profiling data. (Make sure you select a location with enough
space if you profile with lots of detail).
If you want to als profile a child process (started by our own process), enable this before starting to
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, your process wil start.
If you press the stop button Codetrack will try to gracefully end your process and profiling will stop
as soon as the process is stopped. You can also just end the process from your own application.