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 中的 Shared)成员在多线程操作中是安全的。不保证所有实例成员都是线程安全的。 

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。