Sign in to follow this  
Followers 0
ToyBoi

Keeping track of CPU Utilization.

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



@ToyBoi

CPUMon by rasim or _ProcessGetCPU :)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

@Authenticity

The script by rasim (CPUmon) is very fast for get results :)

Cheers, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0