Класс 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

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется. 

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.