Profiling .NET Windows services

Overview

Profiling .NET Windows services with NProfiler is extremely easy. Simply select a service and click Start.

Step by step

  1. Start NProfiler. The session configurator opens automatically. Alternatively, click Home → Session → New in the ribbon to open the session configurator.
  2. Select the application type “Windows Service” at the top.
  3. Configure the desired application options.
  4. Finally, configure general profiling options in the “Profiling Options” section.
  5. Click “Start”.

Windows service session configurator

Application options

Service

Required. Select a .NET Windows service from the drop-down list. When the list is focused, you can type letters to search for services. Warning! The selected service and any dependent services will be restarted at the beginning and end of the profiling session.

Arguments

Optional. Arguments to pass to the service when it starts.

Timeout

Optional. A timeout in seconds for the maximum allowed duration of service start and stop operations. Leave the field blank if you do not want to use a timeout.