Win32_Perf class
The Win32_Perf abstract class is the base class for the performance counter classes Win32_PerfRawData and Win32_PerfFormattedData. It defines the required timestamp and frequency properties used in the CounterType algorithms for the performance counter classes.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
class Win32_Perf : CIM_StatisticalInformation
{
string Caption;
string Description;
uint64 Frequency_Object;
uint64 Frequency_PerfTime;
uint64 Frequency_Sys100NS;
string Name;
uint64 Timestamp_Object;
uint64 Timestamp_PerfTime;
uint64 Timestamp_Sys100NS;
};
Members
The Win32_Perf class has these types of members:
Properties
The Win32_Perf class has these properties.
- Caption
-
- Data type: string
- Access type: Read-only
- Qualifiers: MaxLen (64)
Short description of an object—a one-line string. This property is inherited from CIM_StatisticalInformation.
- Description
-
- Data type: string
- Access type: Read/write
Comment that describes a link. This property is inherited from CIM_StatisticalInformation.
- Frequency_Object
-
- Data type: uint64
- Access type: Read-only
Frequency in ticks per second of the Timestamp_Object property. When sub-classed, the provider defines this property.
For more information about using uint64 values in scripts, see Scripting in WMI.
- Frequency_PerfTime
-
- Data type: uint64
- Access type: Read-only
Frequency in ticks per second of the Frequency_PerfTime property. A value can be obtained by calling the Windows function QueryPerformanceCounter.
For more information about using uint64 values in scripts, see Scripting in WMI.
- Frequency_Sys100NS
-
- Data type: uint64
- Access type: Read-only
Frequency in ticks per second of the Timestamp_Sys100NS property (10000000).
For more information about using uint64 values in scripts, see Scripting in WMI.
- Name
-
The name of the performance counter. This property must have the Key qualifier for the class to appear in System Monitor when System Monitor is run from the Microsoft Management Console (MMC) with the "wmi_sysmon" switch. This property is inherited from CIM_StatisticalInformation.
- Timestamp_Object
-
- Data type: uint64
- Access type: Read-only
Object-defined timestamp. The provider defines his property.
For more information about using uint64 values in scripts, see Scripting in WMI.
- Timestamp_PerfTime
-
- Data type: uint64
- Access type: Read-only
High Performance counter timestamp. A value can be obtained by calling the Windows function QueryPerformanceCounter.
For more information about using uint64 values in scripts, see Scripting in WMI.
- Timestamp_Sys100NS
-
- Data type: uint64
- Access type: Read-only
Timestamp value in 100 nanosecond units.
For more information about using uint64 values in scripts, see Scripting in WMI.
Remarks
The Win32_Perf class derives from CIM_StatisticalInformation.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
DLL |
|
See also
- Performance Counter Classes
- Accessing WMI Preinstalled Performance Classes
- WMI Tasks: Performance Monitoring
- Accessing Performance Data in Script
Send comments about this topic to Microsoft
Build date: 11/19/2012