由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - GPROF problem
相关主题
UNIX下的gprof command怎么用啊?Please help: regarding ftp scripting in Windows xp Command prompt
问个php的问题有人用过octave吗?
gprof和STL的问题求教一个perl问题
有谁用过gprof,觉得这东西有用么? (转载)Statistical Analysis Software
gprof和C++内联函数c++ typedef 一问
大家都用什么工具来profile C/C++程序Windows Shell/command for Briefcase?
C++ Profiler死了,哪里有mingw的入门介绍?
a template counting - anybody understand this?Questions about MAKEFILE
相关话题的讨论汇总
话题: gprof话题: time话题: sampling话题: inaccuracy话题: same
进入Programming版参与讨论
1 (共1页)
n*********s
发帖数: 8
1
Using gprof to profile the running time of a program, get the total time is
about 120s. At the same time, the "time" shell command gives ~180s.
In another case, the two could be ~170s and ~400s, respectively.
Should the time provided by gprof be almost the same as that counted by
"time"?
Thanks
k*****l
发帖数: 34
2
time ./a.out 要给出三种时间的 real, user, system.
不只是系统时间。
k*****l
发帖数: 34
3
Statistical Inaccuracy of gprof Output
Reason:
"The run-time figures that gprof gives you are based on a sampling proce
ss, so they are subject to statistical inaccuracy. "
"The sampling period that is printed at the beginning of the flat profil
e says how often samples are taken. The rule of thumb is that a run-time
figure is accurate if it is considerably bigger than the sampling perio
d. "
Solution:
"One way to get more accuracy is to give your program more (but similar)
input data so it will

【在 n*********s 的大作中提到】
: Using gprof to profile the running time of a program, get the total time is
: about 120s. At the same time, the "time" shell command gives ~180s.
: In another case, the two could be ~170s and ~400s, respectively.
: Should the time provided by gprof be almost the same as that counted by
: "time"?
: Thanks

1 (共1页)
进入Programming版参与讨论
相关主题
Questions about MAKEFILEgprof和C++内联函数
How to execute a shell command in java and display the output?大家都用什么工具来profile C/C++程序
What IDE do people use with C++ and Java , respectively?C++ Profiler
how to program a shell extensiona template counting - anybody understand this?
UNIX下的gprof command怎么用啊?Please help: regarding ftp scripting in Windows xp Command prompt
问个php的问题有人用过octave吗?
gprof和STL的问题求教一个perl问题
有谁用过gprof,觉得这东西有用么? (转载)Statistical Analysis Software
相关话题的讨论汇总
话题: gprof话题: time话题: sampling话题: inaccuracy话题: same