summaryrefslogtreecommitdiff
path: root/tools/profile_used.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/profile_used.py')
-rw-r--r--tools/profile_used.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/profile_used.py b/tools/profile_used.py
index b954f7d1..45420e0f 100644
--- a/tools/profile_used.py
+++ b/tools/profile_used.py
@@ -7,10 +7,6 @@ dump(JSON.stringify(usedFunctions))
import sys
print 'var usedFunctions = {};'
-#print "function getFuncName(f) { return f.toString().split(' ')[1].split('(')[0] }"
-print "function getFuncName(f) { return f.name }"
-
-last = []
for line in open(sys.argv[1]).readlines():
line = line.strip()
@@ -18,11 +14,4 @@ for line in open(sys.argv[1]).readlines():
if line.startswith('function _') and line.endswith(('){', ') {')):
name = line.split(' ')[1].split('(')[0]
print 'usedFunctions["%s"] = 1;' % name
- if line.startswith('var FUNCTION_TABLE'):
- name = line.split(' ')[1].split('=')[0]
- last += ['for (var i = 0; i < %s.length; i++) if (typeof %s[i] === "function") usedFunctions[getFuncName(%s[i])] = 1;' % (name, name, name)]
- if len(last) > 0 and line.endswith(';'):
- for l in last:
- print l
- last = []