SharePoint Item - Type Templates
SPCriticalTraceCounter
Traces critical events and asserts.
SPExecutionTimeCounter
Allows you to track execution time for your scope. You can use properties such as ElapsedTime, StartTime, EndTime, MaximumValue, and ValueIsExcessive to track usage and whether you are exceeding your allocated execution time.
SPRequestUsageCounter
Allows you to track the number of SPRequest objects your code uses. You can pass to the constructor for this object an integer that is the number of maximum SPRequest objects to use, and then you can check to see whether you have exceeded that value and the logging level is increased in the dashboard.
SPSqlQueryCounter
Tracks the number of SQL queries for your scope. The text, call stack, and duration are all tracked and accessible in your code.