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

Issue 93843004: Add methods for finding object by its snapshot id and id for an object (Closed)

Created:
7 years ago by yurys
Modified:
7 years ago
CC:
v8-dev, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add methods for finding object by its snapshot id and id for an object Object<-->id mapping doesn't depend on a particular snapshot, actually same object may appear in several heap snapshots. The API for converting between id and heap object should be provided by HeapProfiler itself. There is already GetObjectId method which I extended with FindObjectById/ClearObjectIds. As the next step I'm going to deprecate and remove HeapGraphNode::GetHeapValue. BUG=chromium:324769 LOG=N R=alph@chromium.org, hpayer@chromium.org, mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18334

Patch Set 1 #

Total comments: 2

Patch Set 2 : Force GC in test #

Patch Set 3 : Comments addressed #

Patch Set 4 : Update #

Patch Set 5 : One more time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -0 lines) Patch
M include/v8-profiler.h View 1 1 chunk +13 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M src/heap-profiler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/heap-profiler.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
yurys
7 years ago (2013-12-04 08:30:14 UTC) #1
yurys
7 years ago (2013-12-04 08:30:32 UTC) #2
alph
lgtm https://codereview.chromium.org/93843004/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/93843004/diff/1/src/api.cc#newcode7500 src/api.cc:7500: nit: add an empty line https://codereview.chromium.org/93843004/diff/1/test/cctest/test-heap-profiler.cc File test/cctest/test-heap-profiler.cc ...
7 years ago (2013-12-04 08:39:37 UTC) #3
yurys
https://codereview.chromium.org/93843004/diff/1/src/api.cc#newcode7500 src/api.cc:7500: nit: add an empty line Done. https://codereview.chromium.org/93843004/diff/1/test/cctest/test-heap-profiler.cc#newcode1067 test/cctest/test-heap-profiler.cc:1067: heap_profiler->StopTrackingHeapObjects(); Maybe force a GC ...
7 years ago (2013-12-04 08:56:32 UTC) #4
yurys
Hannes or Michael, can you do OWNER review please?
7 years ago (2013-12-06 12:39:17 UTC) #5
Michael Starzinger
LGTM (rubber-stamped).
7 years ago (2013-12-09 10:53:54 UTC) #6
Hannes Payer (out of office)
lgtm
7 years ago (2013-12-09 18:53:28 UTC) #7
yurys
7 years ago (2013-12-18 08:17:12 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 manually as r18334 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698