This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Some newbie questions
Avi Kivity <avi@scylladb.com> writes:
> [...]
> I'm surprised this didn't come up before. Trying to find out why a
> function which is usually fast and very rarely slow seems to be a good
> fit for systemtap.
Like this?
https://sourceware.org/systemtap/examples/#profiling/fntimes.stp
Note though that such analysis probably cannot be performed based only
upon PC samples - or even backtrace samples. We seem to require
trapping individual function entry/exit events.
- FChE