summaryrefslogtreecommitdiff
path: root/misc/scripts/memsort.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-12-22 12:34:50 +0100
committerGitHub <noreply@github.com>2019-12-22 12:34:50 +0100
commitb3fac5ded0ba5878255cc93123b324ee737da41b (patch)
treeb78c3a1744c1510a1e27d3f401ba89d6c38834c2 /misc/scripts/memsort.py
parent18e4fb35484d63a116eccb75237ee3d168c806a6 (diff)
parentb6d686305596b2c26a89f58237c2b8f162d5ae2b (diff)
Merge pull request #34411 from Calinou/cleanup-scripts
Remove unused scripts from the `misc/scripts` directory
Diffstat (limited to 'misc/scripts/memsort.py')
-rw-r--r--misc/scripts/memsort.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/misc/scripts/memsort.py b/misc/scripts/memsort.py
deleted file mode 100644
index fb636b0f78..0000000000
--- a/misc/scripts/memsort.py
+++ /dev/null
@@ -1,35 +0,0 @@
-
-import sys
-
-arg = "memdump.txt"
-
-if (len(sys.argv) > 1):
- arg = sys.argv[1]
-
-f = open(arg, "rb")
-
-
-l = f.readline()
-
-
-sum = {}
-cnt = {}
-
-
-while(l != ""):
-
- s = l.split("-")
- amount = int(s[1])
- what = s[2]
- if (what in sum):
- sum[what] += amount
- cnt[what] += 1
- else:
- sum[what] = amount
- cnt[what] = 1
-
- l = f.readline()
-
-
-for x in sum:
- print(x.strip() + "(" + str(cnt[x]) + "):\n: " + str(sum[x]))