对于perf来说,C ++函数名称太长了

时间:2018-05-20 20:45:05

标签: c++ std perf

根据perf,我的运行时占81%。遗憾的是,perf并未显示整个函数名称,仅显示以下内容:

std::__detail::_Map_base<piece, std::pair<piece const, int>, std::allocator<std::pair<piece const, int> >, std::__detail::_Select1st, std::equa
std::equa之后

我无法向右滚动。如何找出整个函数名称以了解它是什么函数?我在父函数中使用该映射做了很多事情,所以它可能是多个事情。

1 个答案:

答案 0 :(得分:4)

如果您使用--stdout参数或只是将输出传输到文件,您将获得带perf report的全宽行。文件技巧的管道(或者如果你仍然想要它在stdout上只是| cat)也适用于许多其他实用程序。