aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-15 17:45:33 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-15 17:45:33 -0700
commit4e0c5a89b387d5f4ca8248c8b31e2db136652a64 (patch)
tree988c085e2cfe09e8271add692e97aed5a74520fa
parentdf70b6582ddd4e50d92bf7cb0142b39285c9747e (diff)
make find_bigfuncs work on ll and js
-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: