Service DLL cpu usage?

I need to figure out the CPU usage of a service DLL. I have looked at the existing samples and we can find the CPU usage for the processes.

I think the DLL will be loaded by services.exe. This is how you can find out about the processor DLL usage.

I am working in C ++ on Windows platform.

0


source to share


4 answers


Make a copy of svchost.exe and name it dbgsrvc.exe; then go to the service entry in the registry (for example, HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog) and change the ImagePath to use dbgsrvc instead of services. This way, you've isolated your service in your own process so that you can get permanent counters on it.



+3


source


The only performance counters available in Windows are at the process level. What do you mean by a service DLL? The only service.DLL I know of is a Trojan virus.



But are you talking about shared service libraries or a specific file?

+1


source


Try the following:

  • Use Perfmon to register all counters for a process object.
  • Before or after the test, run tasklist /svc

    from the Shell. Review the output for the svchost.exe that hosts your service. Pay attention to the PID of this process.
  • After testing, use Perfmon to load your log file, add process dimensions for the process in step 2.
+1


source


You must keep track of the DLL hosting process.

-1


source







All Articles