Classe PerformanceCounters

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

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public NotInheritable Class PerformanceCounters
'Uso
Dim instance As PerformanceCounters
public sealed class PerformanceCounters
public ref class PerformanceCounters sealed
[<SealedAttribute>]
type PerformanceCounters =  class end
public final class PerformanceCounters

O tipo PerformanceCounters expõe os membros a seguir.

Construtores

  Nome Descrição
Método público PerformanceCounters Initializes a new instance of the PerformanceCounters object.

Início

Propriedades

  Nome Descrição
Propriedade públicaMembro estático DependencyDiscoveryDuration Gets or sets the dependency discovery duration.
Propriedade públicaMembro estático DiscoverDependenciesDuration Gets or sets the time period to discover dependencies.
Propriedade públicaMembro estático DoCount Returns Boolean value that determines whether the performance counter is enabled.
Propriedade públicaMembro estático EnumQueriesCount Gets or sets the number of enumerated queries in the performance counter.
Propriedade públicaMembro estático EnumQueriesDuration Gets or sets the time interval for the duration of the queries in the performance counter.
Propriedade públicaMembro estático InitializeCallsCount Gets or sets how many times the performance of the instance of SQL was called.
Propriedade públicaMembro estático ObjectInfoRequestCount Gets or sets the specified count of the objects in the counter.
Propriedade públicaMembro estático SqlExecutionDuration Gets or sets the time span value for the duration of the SQL execution in the performance counter.
Propriedade públicaMembro estático UrnCallsCount Gets or sets the specified number of Uniform Resource Name (URN) calls.
Propriedade públicaMembro estático UrnSkelCallsCount Gets or sets the specific count of Uniform Resource Name (URN) skeleton calls in the counter.
Propriedade públicaMembro estático UrnSkeletonsPerf Gets the current performance status of the Uniform Resource Name (URN) skeletons.
Propriedade públicaMembro estático WalkDependenciesDuration Gets or sets the duration of Walk Dependencies in the counter.

Início

Métodos

  Nome Descrição
Método públicoMembro estático Dump(Boolean) Creates a user-mode or kernel-mode crash dump file for the PerformanceCounters class to a log file.
Método públicoMembro estático Dump(String) Creates a user-mode or kernel-mode crash dump file for the PerformanceCounters class with specified file name.
Método públicoMembro estático Dump(String, Boolean) Creates a user-mode or kernel-mode crash dump file for the PerformanceCounters class with specified file name and header.
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método públicoMembro estático Reset Resets the counter for PerformanceCounters class.
Método público ToString (Herdado de Object.)

Início

Comentários

Thread Safety

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads. 

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência