【问题标题】:perf report - what are the two percentage columns性能报告 - 两个百分比列是什么
【发布时间】:2016-05-19 18:42:56
【问题描述】:

有人知道性能报告输出记录在哪里吗?或者特别是左边的两个百分比列是什么?我发现了许多显示单个百分比列的示例,但我得到了两个。我使用的命令如下。

非常感谢!

 perf record -g -a sleep 1
 # Note: -a == all cpus -g enables backtrace recording for call graphs
 perf report
 +   78.09%     0.00%   node  libc-2.19.so  [.] __libc_start_main
 +   77.71%     0.00%   node  node          [.] node::Start(int, char**)
 ...

【问题讨论】:

    标签: perf


    【解决方案1】:
    1. 如果您想检查sleep 命令,使用-a 没有多大意义。
    2. 通常是函数所用时间的百分比。第一个连同所有子代(从函数调用),第二个是没有子代的函数本身。

    【讨论】:

    • (2) 这是有道理的,但是我不确定为什么我在单处理器系统上得到一列,而在多处理器系统上得到两列。你有列定义的参考吗? (1) Brendan Gregg 写道:# CPU counter statistics for the entire system, for 5 seconds: perf stat -a sleep 5 所以我的印象是这是在分析系统中的所有内容。上面的报告包含很多节点,例如,sleep 中肯定不包含这些节点,所以我认为该命令是正确的,不是吗? brendangregg.com/perf.html
    • perf report --no-children 只显示一列,所以我认为您在这一点上是对的!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-09
    相关资源
    最近更新 更多