summaryrefslogtreecommitdiff
path: root/tools/find_bigfuncs.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-19 13:24:22 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-19 13:24:22 -0700
commit06e7518718115977026830676b80c7279e924b5f (patch)
tree6342cb18521deed0fe9b8e7f8de7fcccb6fa07d6 /tools/find_bigfuncs.py
parent41e7af7eeb7f0d0a3991abd7ff87177308570c54 (diff)
parent745cbe466448395587ecb5214087bac19c9b1cbe (diff)
Merge branch 'incoming'
Diffstat (limited to 'tools/find_bigfuncs.py')
-rw-r--r--tools/find_bigfuncs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/find_bigfuncs.py b/tools/find_bigfuncs.py
index 6fdec3a9..79136343 100644
--- a/tools/find_bigfuncs.py
+++ b/tools/find_bigfuncs.py
@@ -1,5 +1,5 @@
'''
-Simple tool to find big functions in an .ll file.
+Simple tool to find big functions in a js or ll file
'''
import os, sys, re
@@ -11,7 +11,7 @@ curr = None
data = []
for line in open(filename):
i += 1
- if line.startswith('function '):
+ if line.startswith(('function ', 'define ')):
start = i
curr = line
elif line.startswith('}') and curr: