Profile Windows Service
To profile a .NET Windows service:
- Run dotMemory as a standalone application. The dotMemory window will open.
- In the left panel, select Local.
- In the middle panel in Profile Application, select Windows Service.
- In the right panel, in Windows Service:
- In Service, select the service you are going to profile.
- Optionally, if your service requires command-line arguments, turn on Advanced and specify Arguments.
- Optionally, if your service requires other services to be started, turn on Advanced and Start dependent services.
- If you want dotMemory to start collecting the stack trace allocation data* right after the profiling session starts, turn on the Start collecting allocation data immediately option in the right panel.
For more details on profiler options, refer to the Profiler Options section.
- Optionally, if you are going to control profiling session (take snapshots, end session, and so on) using the API (rather than the Controller window), select Control profiling via API. For more details on how to control profiling using the API, refer to the Controlling Profiling Session Through API chapter.
- Click Run.
- Take snapshots. For more details on how to control profiling session, refer to Controlling Profiling Session (if you control the session manually) or to Controlling Profiling Session Through API (if you control profiling using the API).
- After you collect the data, detach the profiler using the Detach button of the Controller window. If you use the API to control profiling, detaching must be provided by your code.
- Analyze the collected snapshots.
Last modified: 16 January 2018