This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: change the sampling time in the gprof


<perugupa@csee.wvu.edu> writes:

>    i am extracting the execution profiles of the test cases on gcc sing
>    gprof.the output of the profile has all 0's for the self seconds
>    colomn.is there any way to change the sample time so that i can get
>    reasonable numbers in the colomn.default is 0.01 sec.i would like to
>    change that to 0.001.any help will be appreciated.thank you.

This is not a gcc question.

The profiling routines are part of the system library--glibc on
GNU/Linux systems.  Those routines invoke system calls.  gprof is part
of the binutils.

On typical Unix systems, as well as on GNU/Linux, the precision of the
gprof timer is determined by the behaviour of the profil() function.
I don't know whether there is any way to adjust that on your
particular system.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]