Browse Source

cleaned up non-essential scripts

Yentl Van Tendeloo 7 years ago
parent
commit
5a58d0161c
1 changed files with 0 additions and 24 deletions
  1. 0 24
      sum_times.py

+ 0 - 24
sum_times.py

@@ -1,24 +0,0 @@
-import sys
-
-tottimes = {}
-cumtimes = {}
-
-for l in open(sys.argv[1], "r"):
-        r = l.rsplit(" : ", 2)
-        if len(r) == 3:
-            func, cumtime, tottime = r
-            cumtime = float(cumtime)
-            tottime = float(tottime)
-            tottimes[func] = tottimes.get(func, 0.0) + tottime
-            cumtimes[func] = cumtimes.get(func, 0.0) + cumtime
-
-lists = [(funcname, tottimes[funcname], cumtimes[funcname]) for funcname in tottimes]
-
-c = 0
-lists.sort(key=lambda i: i[int(sys.argv[2])])
-for func, tottime, cumtime in reversed(lists):
-    if not func.startswith("jit"):
-        print("%s = %s (%s)" % (func, tottime, cumtime))
-        c += 1
-        if c > int(sys.argv[3]):
-            break