Debian Codegraph @

EXAMPLES/general/stopwatches.meta

raw
1 title: See the amount of wall clock time a process spends in various states
2 name: stopwatches.stp
3 version: 1.0
4 author: William Cohen
5 keywords: time bpf
6 subsystem: process
7 status: experimental
8 exit: user-controlled
9 output: on-exit
10 scope: process
11 description: The stopwatch.stp script illustrates how to use multiple stopwatches record how much wallclock time a process spends in kernel- and user-space. On exit the script prints out the time in seconds, milliseconds, microseconds, and nanoseconds. Note that this output of this script is not directly comparable to the time command because time records the time that the process is actually active in kernel- and user-space.
12 test_check: stap -p4 stopwatches.stp
13 test_installcheck: stap stopwatches.stp -T 1
14 test_check_bpf: stap --bpf -p4 stopwatches.stp
15 test_installcheck_bpf: stap --bpf stopwatches.stp -T 1