Debian Codegraph @

EXAMPLES/profiling/linetimes.meta

raw
1 title: Show Time Spent on Each Line of a Function
2 name: linetimes.stp
3 version: 1.0
4 author: William Cohen
5 keywords: profiling _best
6 subsystem: any
7 status: production
8 exit: user-controlled
9 output: sorted-list
10 scope: system-wide
11 description: The linetimes.stp script takes two arguments: where to find the function and the function name. linetimes.stp will instrument each line in the function. It will print out the number of times that the function is called, a table with the average and maximum time each line takes, and control flow information when the script exits.
12 test_check: stap -p4 linetimes.stp kernel do_nanosleep
13 test_installcheck: stap linetimes.stp kernel do_nanosleep -T 1