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

Issue 2846012: Heap profiler: add a missing link between a function closure and shared function info. (Closed)

Created:
10 years, 6 months ago by mnaganov (inactive)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Heap profiler: add a missing link between a function closure and shared function info. Committed: http://code.google.com/p/v8/source/detail?r=4891

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -64 lines) Patch
M include/v8-profiler.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/api.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/checks.h View 2 chunks +4 lines, -4 lines 0 comments Download
M src/profile-generator.h View 5 chunks +7 lines, -2 lines 0 comments Download
M src/profile-generator.cc View 7 chunks +34 lines, -13 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 3 chunks +116 lines, -44 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
mnaganov (inactive)
10 years, 6 months ago (2010-06-17 09:56:34 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/2846012/diff/1/5 File src/profile-generator.cc (right): http://codereview.chromium.org/2846012/diff/1/5#newcode856 src/profile-generator.cc:856: new HeapGraphEdge(HeapGraphEdge::CONTEXT_VARIABLE, name, this, entry)); How about moving ...
10 years, 6 months ago (2010-06-17 12:11:44 UTC) #2
mnaganov (inactive)
10 years, 6 months ago (2010-06-17 12:53:57 UTC) #3
http://codereview.chromium.org/2846012/diff/1/5
File src/profile-generator.cc (right):

http://codereview.chromium.org/2846012/diff/1/5#newcode856
src/profile-generator.cc:856: new HeapGraphEdge(HeapGraphEdge::CONTEXT_VARIABLE,
name, this, entry));
On 2010/06/17 12:11:44, Søren Gjesse wrote:
> How about moving the "new HeapGraphEdge(...)" into AddEdge and pass the four
> arguments to it instead?

HeapGraphEdge constructor is overloaded, so I'll end up having two AddEdge
versions, and again will need to extract common code from them.

http://codereview.chromium.org/2846012/diff/1/7
File test/cctest/test-heap-profiler.cc (right):

http://codereview.chromium.org/2846012/diff/1/7#newcode589
test/cctest/test-heap-profiler.cc:589: "function non_compiled(x) { return x - 1;
}\n"
On 2010/06/17 12:11:44, Søren Gjesse wrote:
> Maybe non_compiled -> compiled_lazy.

A good point! Renamed to 'lazy'.

Powered by Google App Engine
This is Rietveld 408576698