我想在我的程序中找到一个性能问题,从而检测与分析代码。 gprof的创建一个平的轮廓是这样的: Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
27.97 4.
我给定两个函数用于查找两个矩阵的乘积: void MultiplyMatrices_1(int **a, int **b, int **c, int n){
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
for (int k = 0; k < n; k++)
c[i][j]