Skip to content

Commit

Permalink
New-UDGrid process section performance increase.
Browse files Browse the repository at this point in the history
The original version Get-Process | Out-UDGridData is inefficient and take a long time to generate. By limiting the properties sent to Out-UDGridData, process list is loaded significantly faster.
  • Loading branch information
itfranck authored Aug 10, 2019
1 parent fb99e2a commit 2bcf18d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server-performance-dashboard.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Start-UdDashboard -Content {
New-UdRow {
New-UdColumn -Size 12 {
New-UdGrid -Title "Processes" -Headers @("Name", "ID", "Working Set", "CPU") -Properties @("Name", "Id", "WorkingSet", "CPU") -AutoRefresh -RefreshInterval 60 -Endpoint {
Get-Process | Out-UDGridData
Get-Process | Select Name,ID,WorkingSet,CPU | Out-UDGridData
}
}
}
Expand Down

0 comments on commit 2bcf18d

Please sign in to comment.