1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Move various scripts to the "scripts" folder

Thus cleaning up the "tools" folder a bit.

(cherry picked from commit ae9729b6df)
This commit is contained in:
Rémi Verschelde
2016-09-01 22:10:20 +02:00
parent 125a9f0b06
commit ed96689d8c
7 changed files with 1 additions and 171 deletions

35
tools/scripts/memsort.py Normal file
View File

@@ -0,0 +1,35 @@
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]))