Performance counter Registry Key

  • Thread starter Thread starter Kevin Holland
  • Start date Start date
K

Kevin Holland

At TechEd this year on the Compact Framework session, a registry key for
performance counter data was mensioned. The key turns on the dumping of
perofmrnace counters to a file for items like Object Allocated & Current
Object Allocated and can be used to help find allocation related performance
problems

What is the registry Key?
 
You have to create a new registry key, called
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETCompactFramework\PerfMonitor".
In this key, create a DWORD value called "Counters". When you set "Counters"
to 1, performance counters are enabled, to disable them set "Counters" to 0.
With the performance counters enabled, performance data is stored in a flat
text file when you close your application (note that the performance
counters only give valid results when you are using one managed application
ate a time). The flat text file is located in the device's root folder and
is called mscoree.stat. It is a space delimited file. Be aware of a
performance slowdown of approx. 30% when performance counters are turned on.
 
Back
Top