SPCPUCycleCounter class
此監視器用來追蹤 CPU 循環。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Utilities.SPCPUCycleCounter
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public NotInheritable Class SPCPUCycleCounter _
Implements ISPScopedPerformanceMonitor, IDisposable, ISPPerformanceMonitor, ISupportNameValuePairsSerialization
'用途
Dim instance As SPCPUCycleCounter
public sealed class SPCPUCycleCounter : ISPScopedPerformanceMonitor,
IDisposable, ISPPerformanceMonitor, ISupportNameValuePairsSerialization
備註
根據預設值的計數器會開始計算時已經建構,並停止計數處置時。如果您 SPMonitoredScope 需要計算多個執行緒的循環,您應該執行下列: 使用 (新 SPCPUCycleData()) {程式碼}
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.