Denis,
You should be able to trigger the coverage profiler to run anytime the cpu goes over 80%?
If you look at the WMI docs online they should be able to point you in the right direction, I'm pretty sure that is what task manager is using to get the cpu percentage for each of the running processes.
>I describe my problem. I wrote Tapi + winsock solution. My application perfect work.. but SOMETIMERS.. it begin using 90% of CPU... And I can't catch the moment when it happen and what fail in application.
>At this reason, I want to place timer which will check CPU ... and if app during long period take CPU time I want to run coverage profiler and shutdown app.. then look in log - which process make this sh...t..