Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SPCPUCycleCounter class
Collapse the table of content
Expand the table of content

SPCPUCycleCounter class

SharePoint 2013

This monitor is used to track the CPU cycles.

System.Object
  Microsoft.SharePoint.Utilities.SPCPUCycleCounter

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.
Show:
© 2015 Microsoft