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

Issue 19537: Adding src_file_name:line_number into perf log entries for compiled JS functi... (Closed)

Created:
11 years, 10 months ago by Mikhail Naganov
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Adding src_file_name:line_number into perf log entries for compiled JS functions. Thus, instead of the following profiler records: 1.5% 1.5% LazyCompile: <anonymous> we'll now have these: 1.5% 1.5% LazyCompile: <anonymous> richards.js:309 Basically, I translated two functions from messages.js into C++. In the next CL I will update messages.js to use added native functions. Committed: http://code.google.com/p/v8/source/detail?r=1216

Patch Set 1 #

Total comments: 20

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -3 lines) Patch
M src/compiler.cc View 1 chunk +12 lines, -1 line 0 comments Download
M src/factory.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/log.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/log.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 chunks +8 lines, -1 line 0 comments Download
M src/objects.cc View 1 1 chunk +55 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/tickprocessor.py View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Søren Thygesen Gjesse
Mostly nits. http://codereview.chromium.org/19537/diff/1/8 File src/factory.cc (right): http://codereview.chromium.org/19537/diff/1/8#newcode163 Line 163: script->set_line_ends(*(Factory::NewFixedArray(0))); Use Heap::undefined_value() to mark not ...
11 years, 10 months ago (2009-02-02 14:40:45 UTC) #1
Mikhail Naganov
http://codereview.chromium.org/19537/diff/1/8 File src/factory.cc (right): http://codereview.chromium.org/19537/diff/1/8#newcode163 Line 163: script->set_line_ends(*(Factory::NewFixedArray(0))); On 2009/02/02 14:40:45, Søren Gjesse wrote: > ...
11 years, 10 months ago (2009-02-03 09:23:09 UTC) #2
Søren Thygesen Gjesse
LGTM One thing you might look into in a new CL is traversing the string ...
11 years, 10 months ago (2009-02-03 09:44:14 UTC) #3
Mikhail Naganov
11 years, 10 months ago (2009-02-03 10:49:17 UTC) #4
On 2009/02/03 09:44:14, Søren Gjesse wrote:
> LGTM
> 
> One thing you might look into in a new CL is traversing the string twice to
> first count the number of lines and then allocate a FixedArray of the right
size
> and filling it on second traversal. Using a JSArray will result in element
> copying each time the underlying FixedArray is grown, and the
AddKeysFromJSArray
> also copies all the elements. I don't know whether the difference would be
> measurable. See NewElementsCapacity for the growth factor. Also at size
> kMaxFastElementsLength (5000) the JSArray will move to slow (dictionary) case.

Thanks! Yes, I considered using two passes but thought of it as of premature
optimization.

Powered by Google App Engine
This is Rietveld 408576698