Monitoring//logging memory and cpu usage
-
I realize that this may not be the ideal message board for this question, but it seemed like the best place, so here it is. What would be the best way to monitor/log memory & cpu usage for a specific process in the general windows environment? -Thanks
-
I realize that this may not be the ideal message board for this question, but it seemed like the best place, so here it is. What would be the best way to monitor/log memory & cpu usage for a specific process in the general windows environment? -Thanks
using WMI classes are good for this purpose eg:- http://msdn.microsoft.com/en-us/library/aa390423(VS.85).aspx But if you like to use API then you have a lot of options:-- One such is PSAPI Just refer :- http://msdn.microsoft.com/en-us/library/ms681920(VS.85).aspx. WMI is having high performance, and it has a good extensible event mechanism. But PSAPI is not a bad option , but it wont support Windows 9X:)
Величие не Бога может быть недооценена.
-
I realize that this may not be the ideal message board for this question, but it seemed like the best place, so here it is. What would be the best way to monitor/log memory & cpu usage for a specific process in the general windows environment? -Thanks
Alan Kurlansky wrote:
What would be the best way to monitor/log memory & cpu usage for a specific process in the general windows environment?
Is this a coding question, or just a general Windows question? If the latter, use the Performance Monitor (perfmon.msc).
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius