You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Reorder the folders in tools to prepare moving tools/editor
- `certs` and `editor_fonts` go to `thirdparty` - `dist` and `scripts` go to a new `misc` folder - `collada` and `doc` go to `tools/editor` The next step will be to rename `tools/editor` to `editor` directly, but this will be done at the right time to avoid breaking too many PRs.
This commit is contained in:
35
misc/scripts/memsort.py
Normal file
35
misc/scripts/memsort.py
Normal 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]))
|
||||
Reference in New Issue
Block a user