Something that I don’t always remember – you can use the SPMonitoredScope class to monitor your SharePoint code as it executes. The results then get sent to the Developer Dashboard and ULS logs. There’s a decent description of it on MSDN.
using (new SPMonitoredScope("My Monitored Scope")) { // Do Stuff... }
Continue reading “Using SPMonitoredScope, Counters and SPCriticalTraceCounter”