SPCPUCycleCounter class

This monitor is used to track the CPU cycles.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Utilities.SPCPUCycleCounter

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public NotInheritable Class SPCPUCycleCounter _
    Implements ISPScopedPerformanceMonitor, IDisposable, ISPPerformanceMonitor, ISupportNameValuePairsSerialization
'Usage
Dim instance As SPCPUCycleCounter
public sealed class SPCPUCycleCounter : ISPScopedPerformanceMonitor, 
    IDisposable, ISPPerformanceMonitor, ISupportNameValuePairsSerialization

Remarks

The counter by default will start to count when it has been constructed and stop counting when it is disposed.If your SPMonitoredScope needs to count cycles for multiple threads, you should do the followings: using (new SPCPUCycleData()) { Code }

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPCPUCycleCounter members

Microsoft.SharePoint.Utilities namespace