visual-studio - 进程与处理器的处理器时间百分比

标签 visual-studio visual-studio-2008 performance load-testing

我正在查看 visual studio 负载测试结果,发现有些地方没有意义。

Process 类别下的 (_Total) % Processor Time 几乎是线性的。
处理器 类别下的 (_Total) % Processor Time 生成锯齿状图案。

问题 1:进程类别下的处理器时间百分比与处理器类别下的处理器时间百分比有何区别?

当我查看运行负载测试的服务进程下的处理器时间百分比时,它呈现出锯齿状图案,因此这看起来与处理器类别相关...与进程类别无关?

问题 2:为什么单个进程的处理时间百分比会影响处理器而非进程的总处理时间百分比?

最佳答案

  1. Process 类别下的 % Processor Time 与 Processor 类别下的区别是什么?

    获取有关 perfmon 统计信息的起始信息的最佳位置是运行 perfmon.exe。 从那里

    • 过程:

    "The Process performance object consists of counters that monitor running application program and system processes. All the threads in a process share the same address space and have access to the same data."

    • 处理者:

    "The Processor performance object consists of counters that measure aspects of processor activity. The processor is the part of the computer that performs arithmetic and logical computations, initiates operations on peripherals, and runs the threads of processes. A computer can have multiple processors. The processor object represents each processor as an instance of the object."

    这很好地映射到来自“进程”选项卡(进程)的任务管理器信息,并将其与性能选项卡 CPU 使用历史记录(处理器)进行比较。

  2. 为什么单个进程的处理时间百分比会影响处理器而非进程的总处理时间百分比?

    基本上所有进程加起来就是处理器数据上的事件。大多数具有多个处理器的机器使这变得复杂,并且多个进程将根据其配置使用不同的处理器。

    因此,各个进程(应用程序)会增加处理器(CPU)的负载。

关于visual-studio - 进程与处理器的处理器时间百分比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4056666/

相关文章:

c++ - 创建 Qt 插件并使用非虚函数

asp.net-mvc - 如何自动设置输入字段的 MAXLENGTH?

php - 在 PHP 应用程序中使用 C 进行计算 : is it worth it?

c# - 在 Visual Studio 中启用 SSL - 未提示安装证书

git-askpass.exe : No such file or directory could not read Username for

C# - 在 VS2017 中创建新连接时如何修复错误 "missing server and user in credentials"

c# - 访问 settings.settings 时为 "Configuration system failed to initialize"

visual-studio - 以自动方式摆脱 C# 代码中的匈牙利符号?

Java:如何以极高的性能进行基于位置 (x,y) 的索引?

c - 如何在C程序运行时正确调用可执行文件?