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 to share
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 to share