Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CPU Status
Message
From
08/09/2006 11:49:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/09/2006 10:53:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01152193
Message ID:
01152347
Views:
25
>>Denis,
>>
>>>Cool! .. is there exist a WMI Query to ask about process CPU utilization? For example, to get an information about my application process only.
>>
>>If your app is a VFP app there are basically only 2 CPU utilization factors.. less than 1% (when it's sitting at a wait state) and 100% (when it's running code). *bg*
>
>:)))
>David,
>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..

So David's actually right - you need a WMI function which would return a logical. If it returns a .f., no worry, it's below 1%. If it returns .t., it's close to 100%. Rest of the time it must be some other process, not Fox :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform