File: count.py

package info (click to toggle)
uftrace 0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,212 kB
  • sloc: ansic: 53,313; python: 9,846; makefile: 838; asm: 703; cpp: 602; sh: 560; javascript: 191
file content (14 lines) | stat: -rw-r--r-- 171 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
count = 0

def uftrace_begin(ctx):
    pass

def uftrace_entry(ctx):
    global count
    count += 1

def uftrace_exit(ctx):
    pass

def uftrace_end():
    print(count)