查看性能:
1.生成gmon.out
2.生成报告
grpofile ./helloworld > report.txt
3.生成.dot文件
gpro2dot report.txt> report.dot
4.生成性能分析图
dot -Tsvg report.dot -o report.svg
需要安装
pip3 install gprof2dot
sudo apt-get install python graphviz
查看性能:
1.生成gmon.out
2.生成报告
grpofile ./helloworld > report.txt
3.生成.dot文件
gpro2dot report.txt> report.dot
4.生成性能分析图
dot -Tsvg report.dot -o report.svg
需要安装
pip3 install gprof2dot
sudo apt-get install python graphviz