From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: Cc: Subject: Re: change the sampling time in the gprof Date: Tue, 18 May 2004 18:35:00 -0000 Message-id: References: <33848.157.182.195.254.1084202299.squirrel@www.csee.wvu.edu> <40A41F0F.4080806@specifixinc.com> <3864.157.182.194.141.1084903782.squirrel@www.csee.wvu.edu> X-SW-Source: 2004-05/msg00956.html 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