Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 8e87fca2f49595adc16d9aa519a6edad > files > 202

systemtap-1.6-1.fc14.x86_64.rpm

title: Show functions taking longer than usual
name: fntimes.stp
keywords: profiling
description: The fntimes.stp script monitors the execution time history of a given function family (assumed non-recursive).  Each time (beyond a warmup interval) is then compared to the historical maximum.  If it exceeds a certain threshold (250%), a message is printed.
test_check: stap -p4 fntimes.stp 'kernel.function("sys_*")'
test_installcheck: stap fntimes.stp 'kernel.function("sys_*")' -c "sleep 7"