TickProcessor script reimplemented in JavaScript.
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 27 Apr 2009 13:50:42 +0000 (13:50 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 27 Apr 2009 13:50:42 +0000 (13:50 +0000)
commitaa2c33126cfc3ae2598d0e036237aca8e42b8dd4
tree81ba835e0df067266be1c53a02382a951f82e5be
parentc56b22c72ae70974296b87af60cad7dab7d8c6d6
TickProcessor script reimplemented in JavaScript.

This is an effort to reuse profiler data processing code both in
TickProcessor and Dev Tools Profiler. The old Python implementation
will be removed.

The new TickProcessor works almost identical to the previous one.
However, it has some differences:

1. Not very useful "Call profile" section is replaced with a new
   WebKit-like "Bottom up (heavy) profile" which shows the most
   expensive functions together with their callers. I used it
   personally in order to find and remove bottlenecks in the
   tickprocessor script itself, and found it quite helpful.

2. Code entries with duplicate names (they occur for RegExes, stubs
   and sometimes for anonymous Function objects) are now distinguished
   by adding an occurence number inside curly brackets.

3. (Address -> code entry) mapping is more precise in boundary cases.

4. Windows version no more requires specifying .map file location.

5. Works faster.

Review URL: http://codereview.chromium.org/99054

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1802 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
12 files changed:
test/mjsunit/tools/codemap.js
test/mjsunit/tools/consarray.js [new file with mode: 0644]
test/mjsunit/tools/profile.js
test/mjsunit/tools/profileview.js
tools/codemap.js
tools/consarray.js [new file with mode: 0644]
tools/linux-tick-processor [new file with mode: 0755]
tools/profile.js
tools/profileview.js
tools/tickprocessor.js [new file with mode: 0644]
tools/tickprocessor.py
tools/windows-tick-processor.bat [new file with mode: 0755]