Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > e2ec330d3ecf5110b4aa890342e53d96 > files > 1021

systemtap-client-2.1-2.fc17.i686.rpm

title: Profile Kernel Functions
name: thread-times.stp
version: 1.0
author: anonymous
keywords: profiling
subsystem: any
status: proposed
exit: user-controlled
output: trace
scope: system-wide
description: The thread-times.stp script sets up time-based sampling.  Every five seconds it prints out a sorted list with the top twenty threads occupying the CPUs, broken down as a percentage of user and kernel time.
test_check: stap -p4 thread-times.stp
test_installcheck: stap thread-times.stp -c "sleep 0.2"