File: viewprof.py

package info (click to toggle)
linkchecker 9.4.0-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,140 kB
  • sloc: python: 14,200; lex: 1,141; yacc: 832; makefile: 266; sh: 128; ansic: 114; sql: 20; xml: 13; awk: 4; php: 2
file content (19 lines) | stat: -rwxr-xr-x 272 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python
"""
View yappi profiling data.

Usage: $0 <filename>
"""
import sys
import yappi

def main(args):
    filename = args[0]
    stats = yappi.YFuncStats()
    stats.add(filename)
    stats.print_all()


if __name__ == '__main__':
   main(sys.argv[1:])