Performance Counters

An Introduction To Performance Counters
http://www.codeproject.com/Articles/8590/An-Introduction-To-Performance-Counters

Creating Performance Counters Programmatically
http://www.blackwasp.co.uk/CreatePerformanceCounters.aspx