Gcc 中使用 profile 工具优化代码
作者: wulong710
目的,查询代码中各个函数被调用了几次、在何处被调用。方便程序员对代码进行优化。
环境为 mingw32
编辑如下代码 :
#include "iostream"
#include "stdlib.h"
using namespace std;
int func_ten ()
{
_sleep (500);
cout << "exect func ten" <<endl;
return 0;