【问题标题】:PerfMon template for %Processor Time for a given process给定进程的 %Processor Time 的 PerfMon 模板
【发布时间】:2019-09-03 22:59:30
【问题描述】:

我想为我的进程“MyCustomProcess.exe”获取 CPU/%Processor 时间,我在模板中添加了计数器,但在 PerfMon 数据收集器集中没有得到计数器。

Custom_PerfMon_template:

我得到 _Total % Processor Time

<Counter>\Process(_Total)\% Processor Time</Counter>

我也得到了这个值:

<CounterDisplayName>\.NET CLR Exceptions(MyCustomProcess)\# of Exceps Thrown</CounterDisplayName>

我确实没有得到这个值:

<Counter>\Process(MyCustomProcess)\% Processor Time</Counter>

如何获得“\Process(MyCustomProcess)\% Processor Time”值?

谢谢,
RDV

【问题讨论】:

    标签: windows cpu-usage perfmon


    【解决方案1】:

    显然,计数器在那里,只是没有显示。
    解决方案:

    1. 在 PerfMon 中打开 *.blg 文件
    2. 在底部,右键单击-> 添加计数器
    3. 选择您要添加的计数器并单击添加。
    4. 现在应该显示计数器。

    只是不明白,why it doesn't show the counters by default.
    类似问题:https://serverfault.com/questions/193042/perfmon-counters-can-be-selected-but-dont-display-data

    希望这对某人有所帮助。

    谢谢,
    RDV

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-11-11
      • 1970-01-01
      • 2019-07-07
      • 1970-01-01
      • 1970-01-01
      • 2023-04-01
      • 1970-01-01
      相关资源
      最近更新 更多