mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
19 lines
273 B
Python
Executable file
19 lines
273 B
Python
Executable file
#!/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:])
|