File: render-loop.stp

package info (click to toggle)
phoc 0.52.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,052 kB
  • sloc: ansic: 107,165; xml: 3,765; sh: 138; makefile: 33; javascript: 5
file content (18 lines) | stat: -rw-r--r-- 417 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Print render loop execution time
#
# Usage:
#
# stap --runtime=bpf -v tools/render-loop.stp _build/src/phoc
#

probe begin
{
  printf("Measuring render loop, press ctrl-C to stop...\n")
}

probe process(@1).function("phoc_renderer_render_output").return
{
  output = user_string(@entry($output->wlr_output->name));

  printf("Render time: %10s: %6d µs\n", output, gettimeofday_us() - @entry(gettimeofday_us() ))
}