1、以valgrind方式运行可执行文件,如下:其中假定可执行文件运行方式为 ./bin/main conf

valgrind --tool=callgrind  ./bin/main conf

2、上一步会生成一个文件:callgrind.out.*,运行软件qcachegrind074-32bit-x86,导入文件callgrind.out.*即可查看每个类&方法的时间占比

C++项目类&方法时间占比统计

相关文章:

  • 2022-01-08
  • 2022-12-23
  • 2021-08-15
  • 2022-02-07
  • 2021-05-23
  • 2021-04-23
  • 2021-07-08
  • 2021-12-27
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案