Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Issue 149513: TickProcessor: more accurate mapping of statically compiled code on Linux. (Closed)

Created:
11 years, 5 months ago by Mikhail Naganov
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry, Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

TickProcessor: more accurate mapping of statically compiled code on Linux. 'nm' is now called with an option to report function code sizes. Static code entries are restricted to the sizes reported, and the remaining unnamed code is attributed to a library as a whole. This makes reports more accurate, as some functions are tiny, but has chunks of unnamed code behind them. This change doesn't affect reporting on Windows, as in .map files function code sizes aren't specified. Committed: http://code.google.com/p/v8/source/detail?r=2455

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -101 lines) Patch
M test/mjsunit/tools/codemap.js View 2 chunks +26 lines, -4 lines 0 comments Download
M test/mjsunit/tools/profile.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/tools/tickprocessor.js View 8 chunks +39 lines, -31 lines 0 comments Download
M test/mjsunit/tools/tickprocessor-test.default View 3 chunks +10 lines, -15 lines 0 comments Download
M test/mjsunit/tools/tickprocessor-test.ignore-unknown View 3 chunks +10 lines, -15 lines 0 comments Download
M test/mjsunit/tools/tickprocessor-test.separate-ic View 3 chunks +12 lines, -17 lines 0 comments Download
M tools/codemap.js View 6 chunks +32 lines, -4 lines 0 comments Download
M tools/profile.js View 1 chunk +17 lines, -1 line 0 comments Download
M tools/tickprocessor.js View 5 chunks +29 lines, -12 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
Mikhail Naganov
Hi Erik, This is the change that we've discussed some time ago. Dean had pointed ...
11 years, 5 months ago (2009-07-12 14:57:49 UTC) #1
Mikhail Naganov
Adding Kasper as Erik is on vacation.
11 years, 5 months ago (2009-07-14 07:33:01 UTC) #2
Kasper Lund
LGTM. http://codereview.chromium.org/149513/diff/1/10 File tools/tickprocessor.js (right): http://codereview.chromium.org/149513/diff/1/10#newcode387 Line 387: if (prevEntry && !('end' in prevEntry) && ...
11 years, 5 months ago (2009-07-14 07:52:57 UTC) #3
Mikhail Naganov
11 years, 5 months ago (2009-07-14 09:45:47 UTC) #4
Thanks, Kasper!

http://codereview.chromium.org/149513/diff/1/10
File tools/tickprocessor.js (right):

http://codereview.chromium.org/149513/diff/1/10#newcode387
Line 387: if (prevEntry && !('end' in prevEntry) &&
On 2009/07/14 07:52:57, Kasper Lund wrote:
> The 'end' in prevEntry stuff looks a bit weird to me. I think it would be more
> common just to use prevEntry.end, unless you worry about it being zero.

You're right, zero is a forbidden value here. Changed to value check.

http://codereview.chromium.org/149513/diff/1/10#newcode410
Line 410: if ('size' in funcInfo) {
On 2009/07/14 07:52:57, Kasper Lund wrote:
> Is this because you worry that size can be zero?

Done.

Powered by Google App Engine
This is Rietveld 408576698