windows 如何在 perfmon 中重置 Performance 对象?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/242626/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:32:17  来源:igfitidea点击:

How to reset Performance objects in perfmon?

windowsperfmon

提问by sthiers

When I launch perfmon and try to add a counter, the displayed performance objects are all numbers. How can I reset these Performance objects?

当我启动 perfmon 并尝试添加计数器时,显示的性能对象都是数字。如何重置这些 Performance 对象?

采纳答案by sthiers

I found a way to solve the problem:

我找到了解决问题的方法:

  • copy C:\WINDOWS\system32\PerfStringBackup.INI from a PC where perfmon works correctly
  • cd C:\WINDOWS\system32
  • lodctr /R:PerfStringBackup.INI
  • 从 perfmon 正常工作的 PC 复制 C:\WINDOWS\system32\PerfStringBackup.INI
  • cd C:\WINDOWS\system32
  • lodctr /R:PerfStringBackup.INI

回答by Patrick Cuff

What do you mean my "reset"? What's the behavior you're expecting?

我的“重置”是什么意思?您期望的行为是什么?

The perfmon "System Monitor" view shows the (near) real time value of the counter. Since these measurements are always being taken there will (almost) always be a number there.

perfmon“系统监视器”视图显示计数器的(接近)实时值。由于总是进行这些测量,因此(几乎)总会有一个数字。

If you want to be able to control the collection of these measurements, you need to create a Counter Log. Additionally, you can use the logman command to manage the log from the command line or a script.

如果您希望能够控制这些测量值的收集,您需要创建一个计数器日志。此外,您可以使用 logman 命令从命令行或脚本管理日志。