diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-09-18 14:25:21 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-09-18 14:25:21 -0700 |
commit | 6d9840c41dc087f47c08cb42ea7fe74488b4f6fc (patch) | |
tree | 3759ecc69927b697e077144c6f902b537fc1619e | |
parent | 984d19ba2e67ec66dbd936323d2fec9543ce521c (diff) |
update demangler to process profiling output
-rw-r--r-- | third_party/demangler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/demangler.py b/third_party/demangler.py index ed8d52b0..d5e52c39 100644 --- a/third_party/demangler.py +++ b/third_party/demangler.py @@ -31,9 +31,9 @@ data = open(sys.argv[1], 'r').readlines() SEEN = {} for line in data: if len(line) < 4: continue - if line[:2] != ' ': continue - if line[2] != 'f': continue - m = re.match('^ function (?P<func>[^(]+)\(.*', line) + m = re.match('^ function (?P<func>[^(]+)\(.*', line) # generated code + if not m: + m = re.match('^ + _*\d+: (?P<func>[^ ]+) \(\d+.*', line) # profiling output if not m: continue func = m.groups('func')[0] if func in SEEN: continue |