Classe PerformanceCounters

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public NotInheritable Class PerformanceCounters
'Utilisation
Dim instance As PerformanceCounters
public sealed class PerformanceCounters
public ref class PerformanceCounters sealed
[<SealedAttribute>]
type PerformanceCounters =  class end
public final class PerformanceCounters

Le type PerformanceCounters expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique PerformanceCounters Initializes a new instance of the PerformanceCounters object.

Haut de la page

Propriétés

  Nom Description
Propriété publiqueMembre statique DependencyDiscoveryDuration Gets or sets the dependency discovery duration.
Propriété publiqueMembre statique DiscoverDependenciesDuration Gets or sets the time period to discover dependencies.
Propriété publiqueMembre statique DoCount Returns Boolean value that determines whether the performance counter is enabled.
Propriété publiqueMembre statique EnumQueriesCount Gets or sets the number of enumerated queries in the performance counter.
Propriété publiqueMembre statique EnumQueriesDuration Gets or sets the time interval for the duration of the queries in the performance counter.
Propriété publiqueMembre statique InitializeCallsCount Gets or sets how many times the performance of the instance of SQL was called.
Propriété publiqueMembre statique ObjectInfoRequestCount Gets or sets the specified count of the objects in the counter.
Propriété publiqueMembre statique SqlExecutionDuration Gets or sets the time span value for the duration of the SQL execution in the performance counter.
Propriété publiqueMembre statique UrnCallsCount Gets or sets the specified number of Uniform Resource Name (URN) calls.
Propriété publiqueMembre statique UrnSkelCallsCount Gets or sets the specific count of Uniform Resource Name (URN) skeleton calls in the counter.
Propriété publiqueMembre statique UrnSkeletonsPerf Gets the current performance status of the Uniform Resource Name (URN) skeletons.
Propriété publiqueMembre statique WalkDependenciesDuration Gets or sets the duration of Walk Dependencies in the counter.

Haut de la page

Méthodes

  Nom Description
Méthode publiqueMembre statique Dump(Boolean) Creates a user-mode or kernel-mode crash dump file for the PerformanceCounters class to a log file.
Méthode publiqueMembre statique Dump(String) Creates a user-mode or kernel-mode crash dump file for the PerformanceCounters class with specified file name.
Méthode publiqueMembre statique Dump(String, Boolean) Creates a user-mode or kernel-mode crash dump file for the PerformanceCounters class with specified file name and header.
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publiqueMembre statique Reset Resets the counter for PerformanceCounters class.
Méthode publique ToString (hérité de Object.)

Haut de la page

Notes

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe. 

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.