aboutsummaryrefslogtreecommitdiff
path: root/tools/find_bigfuncs.py
diff options
context:
space:
mode:
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: