大网数据广告活动
Windows 系统接口

Win32_PerfRawData class

· 52CE 我爱测

The abstract base class for all concrete raw performance counter classes.

The abstract base class for all concrete raw performance counter classes.

To appear in System Monitor, performance counter classes must be added to the root\cimv2 namespace and derived from Win32_PerfRawData. Data in these classes are provided by the high-performance Performance Counter Provider.

The following properties are inherited when a class is derived from Win32_PerfRawData:

  • Timestamp_PerfTime
  • Timestamp_Sys100NS
  • Timestamp_Object
  • Frequency_PerfTime
  • Frequency_Sys100NS
  • Frequency_Object

In each case, the properties must be filled out by the provider or the class cannot be displayed in System Monitor. These properties are used to compute counter type formulas by consumers of performance data.

The following syntax is simplified from MOF code and shows all inherited properties.

Syntax

[abstract, AMENDMENT]
class Win32_PerfRawData : Win32_Perf
{
  string Caption;
  string Description;
  string Name;
  uint64 Frequency_Object;
  uint64 Frequency_PerfTime;
  uint64 Frequency_Sys100NS;
  uint64 Timestamp_Object;
  uint64 Timestamp_PerfTime;
  uint64 Timestamp_Sys100NS;
};

Members

The Win32_PerfRawData class has these types of members:

Properties

The Win32_PerfRawData class has these properties.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64)

Short textual description for the statistic or metric.

This property is inherited from CIM_StatisticalInformation.

Description

Data type: string

Access type: Read-only

Textual description of the statistic or metric.

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.

This property is inherited from Win32_Perf.

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.

This property is inherited from Win32_Perf.

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.

This property is inherited from Win32_Perf.

Name

Data type: string

Access type: Read-only

Qualifiers: MaxLen (256)

Label by which the statistic or metric is known. When subclassed, this property can be overridden to be a key property.

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.

This property is inherited from Win32_Perf.

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.

This property is inherited from Win32_Perf.

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.

This property is inherited from Win32_Perf.

Remarks

The Win32_PerfRawData class is derived from Win32_Perf, which is derived from CIM_StatisticalInformation.

All classes derived from Win32_Perf are designed to be used with a refresher object. For more information about how to create and use a refresher object in the C++ programming language, see Accessing Performance Data in C++. For more information about how to create and use a refresher object in a script programming language, see Refreshing WMI Data in Scripts.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Namespace Root\CIMV2
MOF CIMWin32.mof
DLL WmiPerfInst.dll

See also

Win32_Perf

Performance Counter Classes

Accessing WMI Preinstalled Performance Classes

WMI Tasks: Performance Monitoring

Accessing Performance Data in Script

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。