Share via


Clase PerformanceCounters

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

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
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

El tipo PerformanceCounters expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público PerformanceCounters Initializes a new instance of the PerformanceCounters object.

Arriba

Propiedades

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

Arriba

Métodos

  Nombre Descripción
Método públicoMiembro 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úblicoMiembro 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úblicoMiembro 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 (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método públicoMiembro estático Reset Resets the counter for PerformanceCounters class.
Método público ToString (Se hereda de Object.)

Arriba

Comentarios

Thread Safety

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos. 

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.