LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Monitor thread CPU usage ?

I have a system with a thread which approx. every 0.5 second must calculate
and move around quite a lot of data. The calculate function should be fast
enough, but I think that other threads running panels and timers "steel" too
much time.

Is it possible to monitor how much cpu time the different threads in a
project use?
The W2K task manager only gives the overall time.

Best regards
Lars P. Magnussen
0 Kudos
Message 1 of 3
(2,935 Views)
Hello

You might try using the performance counter tools provided by Windows 2k. You can find them under Control Panel >> Administrative Tools >> Performance. Here, you can add the approriate counter for what you are trying to keep track of. This does provide you with a why of tracking indivudual thread usage in a process.
For more information on using the tool, you might want to check out the MSDN here

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(2,935 Views)
Yes, there are utility programs that will show you resource usage by thread. My favorite one is TaskInfo2002 which you can download here.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 3 of 3
(2,935 Views)