2 # Time-stamp: <2019-10-30 16:07:15 taoliu>
6 # ------------------------------------
8 # ------------------------------------
11 sys
.stderr
.write("need 2 paras: %s <prof file> <time|calls|cumulative|...>\n" % sys
.argv
[0])
14 p
= pstats
.Stats(sys
.argv
[1])
15 sort_term
= sys
.argv
[2]
17 p
.strip_dirs().sort_stats(sort_term
).print_stats(30)
20 if __name__
== '__main__':