SPCPUCycleCounter class

SharePoint 2013

This monitor is used to track the CPU cycles.


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

public sealed class SPCPUCycleCounter : ISPScopedPerformanceMonitor, 
	IDisposable, ISPPerformanceMonitor, ISupportNameValuePairsSerialization

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 }

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