ToyBoi Posted January 23, 2009 Posted January 23, 2009 Hi Everyone, does anyone know if there is a way to keep track of CPU utilization and saving it in a track for reporting purposes? So that a time elapse view of the CPU usage is possible?
FireFox Posted January 23, 2009 Posted January 23, 2009 @ToyBoi CPUMon by rasim or _ProcessGetCPU Cheers, FireFox.
Authenticity Posted January 23, 2009 Posted January 23, 2009 Dunno if this is what you want but I'll just drop it here: Opt('MustDeclareVars', 1) If Not IsAdmin() Then MsgBox(0x10, 'Administration authentication', 'Must be administrator to run this script') Exit EndIf Global $oWMI, $oSet, $oItem Global $Text, $moniker, $SelFrom Global $i $SelFrom = 'Select LoadPercentage From Win32_Processor' $moniker = 'winmgmts:{impersonationLevel=impersonate}!//' & @LogonDomain $Text = '' $oWMI = ObjGet($moniker) For $i = 1 To 5 $oSet = $oWMI.ExecQuery($SelFrom) For $oItem In $oSet $Text &= 'Load Percentage[' & $i & ']' & @TAB & @TAB & $oItem.LoadPercentage & '%' & @CRLF Next Next MsgBox(0x40, "Processor load percengate over 5 rounds", $Text) $oSet = 0 $oWMI = 0 -Keep in mind that it might be slow to get results even for 1 round, I'm trying to think about faster way...
FireFox Posted January 23, 2009 Posted January 23, 2009 (edited) @Authenticity The script by rasim (CPUmon) is very fast for get results Cheers, FireFox. Edited January 23, 2009 by FireFox
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now