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

Issue 52643002: HeapProfiler: provide human readable names for code objects. (Closed)

Created:
7 years, 1 month ago by loislo
Modified:
7 years, 1 month ago
Reviewers:
alph, Sven Panne, yangguo, yurys
CC:
v8-dev, yurys, alph
Visibility:
Public.

Description

HeapProfiler: provide human readable names for code objects. It is very hard to understand the structure of the heap even for about:blank page because code objects in the heap have no names. This patch propagates the names for Code::STUB and Code::BUILTIN code objects. Also it assign function names from SharedFunctionInfo to the code objects. BUG= R=alph@chromium.org, svenpanne@chromium.org, yurys@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=17486

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments addressed #

Total comments: 2

Patch Set 3 : comments addressed #

Total comments: 4

Patch Set 4 : comments addressed #

Total comments: 16

Patch Set 5 : comments addressed #

Patch Set 6 : comments addressed #

Patch Set 7 : comments addressed #

Patch Set 8 : style fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -9 lines) Patch
M src/builtins.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/heap-snapshot-generator.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap-snapshot-generator.cc View 1 2 3 4 5 6 7 10 chunks +52 lines, -9 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
loislo
7 years, 1 month ago (2013-10-30 14:41:29 UTC) #1
yurys
Can you add a test for this? https://codereview.chromium.org/52643002/diff/1/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/52643002/diff/1/src/heap-snapshot-generator.cc#newcode1382 src/heap-snapshot-generator.cc:1382: shared->inferred_name(); DebugName ...
7 years, 1 month ago (2013-10-30 15:00:34 UTC) #2
loislo
> Can you add a test for this? done > > https://codereview.chromium.org/52643002/diff/1/src/heap-snapshot-generator.cc > File src/heap-snapshot-generator.cc ...
7 years, 1 month ago (2013-10-31 09:40:24 UTC) #3
yurys
https://codereview.chromium.org/52643002/diff/50001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/52643002/diff/50001/src/heap-snapshot-generator.cc#newcode1380 src/heap-snapshot-generator.cc:1380: shared_name = !shared_name->IsFailure() ? shared_name : shared->DebugName(); shared_name->IsFailure() will ...
7 years, 1 month ago (2013-10-31 09:54:01 UTC) #4
loislo
comments addressed https://codereview.chromium.org/52643002/diff/50001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/52643002/diff/50001/src/heap-snapshot-generator.cc#newcode1380 src/heap-snapshot-generator.cc:1380: shared_name = !shared_name->IsFailure() ? shared_name : shared->DebugName(); ...
7 years, 1 month ago (2013-10-31 10:59:39 UTC) #5
alph
https://codereview.chromium.org/52643002/diff/100001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/52643002/diff/100001/src/heap-snapshot-generator.cc#newcode1377 src/heap-snapshot-generator.cc:1377: shared_name = (shared_name != empty_string) ? Doesn't DebugName already ...
7 years, 1 month ago (2013-10-31 11:42:34 UTC) #6
loislo
comments addressed https://codereview.chromium.org/52643002/diff/100001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/52643002/diff/100001/src/heap-snapshot-generator.cc#newcode1377 src/heap-snapshot-generator.cc:1377: shared_name = (shared_name != empty_string) ? On ...
7 years, 1 month ago (2013-10-31 12:33:14 UTC) #7
alph
lgtm https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1375 src/heap-snapshot-generator.cc:1375: Object* shared_name = shared->DebugName(); nit: DebugName returns String, ...
7 years, 1 month ago (2013-10-31 12:55:46 UTC) #8
yurys
https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1382 src/heap-snapshot-generator.cc:1382: Code::Kind2String(shared->code()->kind()))); style: indent 4 characters https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1476 src/heap-snapshot-generator.cc:1476: case Code::STUB: ...
7 years, 1 month ago (2013-10-31 14:24:02 UTC) #9
alph
https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1476 src/heap-snapshot-generator.cc:1476: case Code::STUB: { On 2013/10/31 14:24:02, Yury Semikhatsky wrote: ...
7 years, 1 month ago (2013-10-31 14:28:37 UTC) #10
loislo
comments addressed https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1375 src/heap-snapshot-generator.cc:1375: Object* shared_name = shared->DebugName(); On 2013/10/31 12:55:46, ...
7 years, 1 month ago (2013-10-31 14:41:13 UTC) #11
yurys
lgtm
7 years, 1 month ago (2013-10-31 15:11:24 UTC) #12
yurys
https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1777 src/heap-snapshot-generator.cc:1777: if (reference_tags_[tags_index].index == all_index) { On 2013/10/31 14:24:02, Yury ...
7 years, 1 month ago (2013-11-01 14:55:04 UTC) #13
Sven Panne
LGTM (rubberstamped)
7 years, 1 month ago (2013-11-05 13:13:11 UTC) #14
loislo
7 years, 1 month ago (2013-11-05 13:23:13 UTC) #15
Message was sent while issue was closed.
Committed patchset #8 manually as r17486 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698