Difference between revisions of "Top"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
``` | ``` | ||
(Get-Counter '\Process(*)\% Processor Time').CounterSamples | Where-Object {$_.CookedValue -gt 5} | Sort-Object -Property cookedvalue -Descending | (Get-Counter '\Process(*)\% Processor Time').CounterSamples | Where-Object {$_.CookedValue -gt 5} | Sort-Object -Property cookedvalue -Descending | ||
+ | ``` | ||
+ | |||
+ | ## HTTP Response | ||
+ | ``` | ||
+ | $url="cisco.com"; (Measure-Command -Expression { $site = Invoke-WebRequest -Uri $url -UseBasicParsing }).Milliseconds | ||
``` | ``` | ||
Revision as of 15:51, 19 August 2022
Windows
Powershell like commands
(Get-Counter '\Process(*)\% Processor Time').CounterSamples | Where-Object {$_.CookedValue -gt 5} | Sort-Object -Property cookedvalue -Descending
HTTP Response
$url="cisco.com"; (Measure-Command -Expression { $site = Invoke-WebRequest -Uri $url -UseBasicParsing }).Milliseconds