Profiling Windows Service

Hi,

I wrote an C# Portmonitor which is loaded by the Windows Spooler Service (spoolss.exe). Is it possible to profile the portmonitor with ANTS 2? I can't find something like "Attach to process..." in the menu or the project settings. Starting spoolss.exe from the command line isn't possible.
Best regards,
Carsten Grünzner

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hello,

    If the executable that you want to profile is normally started through the services control panel, you can't profile it, unfortunately. You'd need to have a normal executable that is not a service to call your code and then profile that.

    ANTS Profiler can't cope with services yet because it doesn't know how to start them.
  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    ANTS Profiler 2.5 will give you the ability to profile Windows Services. It can stop and start the service that you choose to profile and produce profiling information.
This discussion has been closed.