Windows 性能计数器中的 (*) 是什么

Pau*_*ing 7 windows-server-2008 performance-monitoring performance-counters

以下面的计数器为例:

\LogicalDisk(*)\% 可用空间

我在哪里可以找到什么可以代替*

我知道有时是_global_,有时是_total_。我不知道有什么区别(除了采取明显的猜测)。

还有什么可用的?
什么可以/不能用于不同的计数器?

Rya*_*ies 7

星号代表“所有实例”,其中包括适用的 _Total。

Perfmon 可能是查看计数器并查看系统上可用内容的最简单的地方。

typeperf文档中

•Counter path format 

The general format for counter paths is as follows: [\\Computer]\object[parent/instance#index]\counter] where:

The parent, instance, index, and counter components of the format may contain either a valid name or a wildcard character. The computer, parent, instance, and index components are not necessary for all counters.

You determine the counter paths to use based on the counter itself. For example, the LogicalDisk object has an instance index, so you must provide the #index or a wildcard. Therefore, you could use the following format:

\LogicalDisk(*/*#*)\*

In comparison, the Process object does not require an instance index. Therefore, you could use the following format:

\Process(*)\ID Process

The following is a list of the possible formats: ? \\machine\object(parent/instance#index)\counter 

? \\machine\object(parent/instance)\counter 

? \\machine\object(instance#index)\counter 

? \\machine\object(instance)\counter 

? \\machine\object\counter 

? \object(parent/instance#index)\counter 

? \object(parent/instance)\counter 

? \object(instance#index)\counter 

? \object(instance)\counter 

? \object\counter
Run Code Online (Sandbox Code Playgroud)

编辑:哦,别忘了在 Powershell 中查看 Get-Counter:

PS C:\> (Get-Counter -ListSet Memory).Paths

\Memory\Page Faults/sec
\Memory\Available Bytes
\Memory\Committed Bytes
\Memory\Commit Limit
\Memory\Write Copies/sec
\Memory\Transition Faults/sec
\Memory\Cache Faults/sec
\Memory\Demand Zero Faults/sec
\Memory\Pages/sec
\Memory\Pages Input/sec
...

The second command gets the path names that include "cache".
PS C:\> (Get-Counter -ListSet Memory).Paths | Where {$_ -like "*Cache*"}

\Memory\Cache Faults/sec
\Memory\Cache Bytes
\Memory\Cache Bytes Peak
\Memory\System Cache Resident Bytes
\Memory\Standby Cache Reserve Bytes
\Memory\Standby Cache Normal Priority Bytes
\Memory\Standby Cache Core Bytes
Run Code Online (Sandbox Code Playgroud)