共用方式為


PerformanceCounters 類別

A PerformanceCounters object represents a performance counter that is used to trace the performance of the instance of SQL Server.

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..PerformanceCounters

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public NotInheritable Class PerformanceCounters
'用途
Dim instance As PerformanceCounters
public sealed class PerformanceCounters
public ref class PerformanceCounters sealed
[<SealedAttribute>]
type PerformanceCounters =  class end
public final class PerformanceCounters

PerformanceCounters 型別公開下列成員。

建構函式

  名稱 說明
公用方法 PerformanceCounters Initializes a new instance of the PerformanceCounters object.

上層

屬性

  名稱 說明
公用屬性靜態成員 DependencyDiscoveryDuration Gets or sets the dependency discovery duration.
公用屬性靜態成員 DiscoverDependenciesDuration Gets or sets the time period to discover dependencies.
公用屬性靜態成員 DoCount Returns Boolean value that determines whether the performance counter is enabled.
公用屬性靜態成員 EnumQueriesCount Gets or sets the number of enumerated queries in the performance counter.
公用屬性靜態成員 EnumQueriesDuration Gets or sets the time interval for the duration of the queries in the performance counter.
公用屬性靜態成員 InitializeCallsCount Gets or sets how many times the performance of the instance of SQL was called.
公用屬性靜態成員 ObjectInfoRequestCount Gets or sets the specified count of the objects in the counter.
公用屬性靜態成員 SqlExecutionDuration Gets or sets the time span value for the duration of the SQL execution in the performance counter.
公用屬性靜態成員 UrnCallsCount Gets or sets the specified number of Uniform Resource Name (URN) calls.
公用屬性靜態成員 UrnSkelCallsCount Gets or sets the specific count of Uniform Resource Name (URN) skeleton calls in the counter.
公用屬性靜態成員 UrnSkeletonsPerf Gets the current performance status of the Uniform Resource Name (URN) skeletons.
公用屬性靜態成員 WalkDependenciesDuration Gets or sets the duration of Walk Dependencies in the counter.

上層

方法

  名稱 說明
公用方法靜態成員 Dump(Boolean) Creates a user-mode or kernel-mode crash dump file for the PerformanceCounters class to a log file.
公用方法靜態成員 Dump(String) Creates a user-mode or kernel-mode crash dump file for the PerformanceCounters class with specified file name.
公用方法靜態成員 Dump(String, Boolean) Creates a user-mode or kernel-mode crash dump file for the PerformanceCounters class with specified file name and header.
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法靜態成員 Reset Resets the counter for PerformanceCounters class.
公用方法 ToString (繼承自 Object。)

上層

備註

Thread Safety

此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。 

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。