File: printstats.py

package info (click to toggle)
python-strictyaml 1.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,708 kB
  • sloc: python: 12,836; sh: 48; makefile: 3
file content (8 lines) | stat: -rw-r--r-- 153 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
import pstats
import sys
import os

if os.path.exists(sys.argv[1]):
    p = pstats.Stats(sys.argv[1])
    p.sort_stats("cumulative")
    p.print_stats()