Reviewers: Michail Naganov,

Description:
One some platforms nm spits out some strange internal symbols called $t,
$d
etc.  We want to ignore them in the profile.  Using -g gets rid of them
too
but it gets rid of some information that we want to keep too.

Please review this at http://codereview.chromium.org/132015

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     tools/linux-tick-processor.py


Index: tools/linux-tick-processor.py
===================================================================
--- tools/linux-tick-processor.py       (revision 2216)
+++ tools/linux-tick-processor.py       (working copy)
@@ -47,9 +47,11 @@
          row = re.match('^([0-9a-fA-F]{8}) . (.*)$', line)
          if row:
            addr = int(row.group(1), 16)
+          name = row.group(2);
            if addr < start and addr < end - start:
              addr += start
-          self.cpp_entries.Insert(addr, tickprocessor.CodeEntry(addr,  
row.group(2)))
+          if not re.match('^\$[a-z]$', name):
+            self.cpp_entries.Insert(addr, tickprocessor.CodeEntry(addr,  
name))
      finally:
        pipe.close()




--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to