Ben Lambert <belambert@...> writes:
> On Jul 18, 2006, at 7:23 PM, Juho Snellman wrote:
>
> >> But also I wonder exactly what the profiler samples. Does it just
> >> sample the function that is currently executing or does it sample
> >> the entire call stack?
> >
> > Neither. By default it samples eight levels of the call stack on x86
> > and x86-64, and two levels on other platforms.
>
> Thanks Juho. Just one more question, if 8 and 2 are the defaults for
> this, is it possible to increase them? Or are there hard limitations
> on how far back in the stack it's possible to look when sampling?
You can increase it on x86* by increasing the value of +sample-size+
and recompiling sb-sprof. There's no hard limit, but profiling will
cause bigger slowdowns with higher depths. For non-x86oid platforms
going beyond 2 levels would require some coding.
--
Juho Snellman
|