-
安装gperftools
sudo apt-get install google-perftools graphviz
-
下载本项目代码
-
编译本项目,在项目根目录执行
make
-
进入build文件夹,设置libcomplex.so动态链接库路径为当前路径
export LD_LIBRARY_PATH=.
-
执行程序并进行性能分析
LD_PRELOAD=/usr/lib/libprofiler.so.0 CPUPROFILE=./main.prof ./main
-
查看性能分析结果
google-pprof --web ./main ./main.prof
-
Notifications
You must be signed in to change notification settings - Fork 2
Gperftools使用教程
01joy/test-gperftools
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Gperftools使用教程
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published