【问题标题】:Function CPU time additivity in the vtune measurementsvtune 测量中的函数 CPU 时间可加性
【发布时间】:2021-08-19 19:18:36
【问题描述】:

假设我有以下调用结构:

funcA() -> funcB() -> funcC()

funcB() -> funcC(), funcD()

在 VTune 结果(带有热点的 uarch-exploration 结果)中,显示了各个函数的 CPU 时间。我的问题是 CPU 时间是否本质上是“加法”的?即results中A的时间还包括第一行B和C的执行时间,以及results中B的时间是否也包括第二行C和D的执行时间?

如果不是,请确认热点分析是否报告B的执行时间=第一行B的执行时间+第二行B的执行时间?

【问题讨论】:

    标签: performance intel-vtune performance-measuring


    【解决方案1】:

    英特尔 VTune、英特尔 Advisor 和其他一些分析器(例如 Crhome 分析器)报告包含(包括 B、C、D)和排他(A,除了 B、C、D,因此是附加的)时间指标。 包容性称为“总时间”,而排斥性称为“自我时间”。 阅读更多:https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/reference/cpu-metrics-reference/self-time-and-total-time.html

    【讨论】:

      猜你喜欢
      • 2015-10-15
      • 2019-10-20
      • 1970-01-01
      • 1970-01-01
      • 2013-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-09
      相关资源
      最近更新 更多