Profiling
Performance profiler for PowerShell Universal.
Last updated
Was this helpful?
Was this helpful?
New-PSUEndpoint -Url "/process" -Endpoint {
Measure-PSUBlock -Name 'Api' -ScriptBlock {
Get-Process | Select-Object name
}
} -Authentication -Timeout 0 New-UDApp -Title 'App' -Content {
New-UDDynamic -Id 'MyElement' -Content {
Measure-PSUBlock -Name 'WithinDashboard' -ScriptBlock {
Start-Sleep 1
}
}
}Measure-PSUBlock -ScriptBlock {
Get-Service
} -Name 'Get-Service'