平方树形图
生成用于数据可视化的方树图用户界面的代码
现在具有可自定义标签和Passthru支持!
# region Stopping a high memory process
$Tooltip = {
@"
Process Name <PID>: $ ( $This .LabelProperty ) < $ ( $This .ObjectData.Id ) >
WorkingSet Memory(MB): $ ( [ math ]::Round(( $This .DataProperty / 1 MB ) , 2 ) )
"@
}
Get-Process | Sort-Object - prop WS - Descending | Select - First 8 |
Out-SquarifiedTreeMap - Tooltip $Tooltip - LabelP