程序性能测试
cygwim安装:在线安装,,代理下载组件
命令行:
gcc -o test.exe -g -pg program1.c program2.c
(-o 编译程序,以exe展示,-pg 表示与gprof链接 )
./test.exe
(执行exe)
gprof.exe -b test.exe gmon.out
(将性能测试结果展示出来)
程序性能测试
cygwim安装:在线安装,,代理下载组件
命令行:
gcc -o test.exe -g -pg program1.c program2.c
(-o 编译程序,以exe展示,-pg 表示与gprof链接 )
./test.exe
(执行exe)
gprof.exe -b test.exe gmon.out
(将性能测试结果展示出来)