change the sampling time in the gprof
Ian Lance Taylor
ian@wasabisystems.com
Tue May 18 18:57:00 GMT 2004
Zack Weinberg <zack@codesourcery.com> writes:
> Ian Lance Taylor <ian@wasabisystems.com> writes:
>
> > 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.
>
> Linux (the kernel) does not implement profil(). glibc uses
> setitimer() and SIGPROF for profiling.
Yeah, I was somewhat ambiguous. glibc does use the profil function,
but as you say the function is not in the kernel. It is just another
part of glibc.
Ian
More information about the Gcc
mailing list