Chapter2/2.9_formatting/process.format.ps1xml

<?xml version="1.0" encoding="utf-8"?><Configuration><ViewDefinitions><View><Name>process</Name><ViewSelectedBy><TypeName>System.Diagnostics.Process</TypeName></ViewSelectedBy><TableControl><TableHeaders><TableColumnHeader><Label>NPM(K)</Label><Width>7</Width><Alignment>Right</Alignment></TableColumnHeader><TableColumnHeader><Label>PM(M)</Label><Width>8</Width><Alignment>Right</Alignment></TableColumnHeader><TableColumnHeader><Label>WS(M)</Label><Width>10</Width><Alignment>Right</Alignment></TableColumnHeader><TableColumnHeader><Label>CPU(s)</Label><Width>10</Width><Alignment>Right</Alignment></TableColumnHeader><TableColumnHeader><Width>7</Width><Alignment>Right</Alignment></TableColumnHeader><TableColumnHeader><Width>3</Width><Alignment>Right</Alignment></TableColumnHeader><TableColumnHeader /></TableHeaders><TableRowEntries><TableRowEntry><TableColumnItems><TableColumnItem><ScriptBlock>[long]($_.NPM / 1024)</ScriptBlock></TableColumnItem><TableColumnItem><ScriptBlock>"{0:N2}" -f [float]($_.PM / 1MB)</ScriptBlock></TableColumnItem><TableColumnItem><ScriptBlock>"{0:N2}" -f [float]($_.WS / 1MB)</ScriptBlock></TableColumnItem><TableColumnItem><ScriptBlock>"{0:N2}" -f [float]($_.CPU)</ScriptBlock></TableColumnItem><TableColumnItem><PropertyName>Id</PropertyName></TableColumnItem><TableColumnItem><PropertyName>SI</PropertyName></TableColumnItem><TableColumnItem><PropertyName>ProcessName</PropertyName></TableColumnItem></TableColumnItems></TableRowEntry></TableRowEntries></TableControl></View><View><Name>process</Name><ViewSelectedBy><TypeName>System.Diagnostics.Process</TypeName></ViewSelectedBy><WideControl><WideEntries><WideEntry><WideItem><PropertyName>ProcessName</PropertyName></WideItem></WideEntry></WideEntries></WideControl></View></ViewDefinitions></Configuration>