CLR GC performance counters % time spent in GC provides approximate time taken by GC in garbage collection. CLR ETW events can provide very useful insights into how GC is preforming for a process. Xperf tool found at http://msdn.microsoft.com/en-us/performance/cc825801.aspx can be used to trace CLR events. Run the following to enable and trace CLR events:wevtutil im C:\Windows\Microsoft.NET\Framework64\v4.0.30128\CLR-ETW.man (Change the path C:\Windows\Microsoft.NET\Framework64\v4.0.30128 to appropriate value).
xperf -start clr -on ClrGc -f gcevents.etl
sleep.exe %1
\xperf -stop clr
set _NT_SYMBOL_PATH=srv*d:\symbols*<symbolpath to public symbols>
xperf.exe -evXml C:\Windows\Microsoft.NET\Framework64\v4.0.30128\CLR-ETW.man -i gcevents.etl -o merged.csv -symbols -a dumper
findstr /ips "\/Start \/Stop" merged.csv > gcevents.csv // Filter only start and stop event. Filter any other events required.
notepad gcevents.csvRead more: Cache & Grid
xperf -start clr -on ClrGc -f gcevents.etl
sleep.exe %1
\xperf -stop clr
set _NT_SYMBOL_PATH=srv*d:\symbols*<symbolpath to public symbols>
xperf.exe -evXml C:\Windows\Microsoft.NET\Framework64\v4.0.30128\CLR-ETW.man -i gcevents.etl -o merged.csv -symbols -a dumper
findstr /ips "\/Start \/Stop" merged.csv > gcevents.csv // Filter only start and stop event. Filter any other events required.
notepad gcevents.csvRead more: Cache & Grid
0 comments:
Post a Comment