[转载] 问一个fortran的问题# Computation - 科学计算a*s2004-03-25 08:031 楼【 以下文字转载自 Linux 讨论区 】【 原文由 achillis 所发表 】程序里面有很多subroutine,有没有办法知道各个subroutine计算的时候占用了多少cpu时间呢?thanks
h*o2004-03-25 08:032 楼gprof...【在 a******s 的大作中提到】: 【 以下文字转载自 Linux 讨论区 】: 【 原文由 achillis 所发表 】: 程序里面有很多subroutine,有没有办法知道各个subroutine计算的时候占用了: 多少cpu时间呢?: thanks
h*o2004-03-25 08:034 楼谁告诉的?man一man gprof吧可能只能用gnu的编译器【在 a******s 的大作中提到】: It seems it is only for C,not fortran?
a*s2004-03-25 08:035 楼恩,知道怎么弄了% ifc -O -p -g foo.f # or gcc -O -pg foo.c% ./a.out% gprof a.out gmon.outThanks【在 h***o 的大作中提到】: 谁告诉的?man一man gprof吧: 可能只能用gnu的编译器