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 27694004: HeapProfiler: for the test purposes we would like to trace object movements. (Closed)

Created:
7 years, 2 months ago by loislo
Modified:
7 years, 2 months ago
CC:
v8-dev, yurys, alph
Visibility:
Public.

Description

HeapProfiler: for the test purposes we would like to trace object movements. When we have an untracked allocations we need to fix it. It is a bit tricky process due to lack of logging. I added FLAG_heap_profiler_trace_objects that enables log for object movements. Drive by fix: with help of logging I found a bug in LeftTrim method for FixedArray. BUG=none R=svenpanne@chromium.org, yurys@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=17258 Committed: https://code.google.com/p/v8/source/detail?r=17263 Committed: https://code.google.com/p/v8/source/detail?r=17269

Patch Set 1 #

Total comments: 23

Patch Set 2 : comments addressed #

Patch Set 3 : GC call returned back #

Patch Set 4 : untracked objects counting mechanics were slightly changed #

Patch Set 5 : untracked objects counting mechanics were slightly changed #

Patch Set 6 : untracked objects counting mechanics were slightly changed #

Patch Set 7 : untracked objects counting mechanics were slightly changed #

Patch Set 8 : cosmetic change #

Total comments: 1

Patch Set 9 : signed insigned fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -6 lines) Patch
M src/builtins.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -4 lines 0 comments Download
M src/flag-definitions.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/heap-snapshot-generator.cc View 1 2 3 4 5 6 7 8 6 chunks +125 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
loislo
7 years, 2 months ago (2013-10-17 13:02:32 UTC) #1
loislo
On 2013/10/17 13:02:32, loislo wrote: sample of output New object : 0x1b1d7e1532b8 120. Next address ...
7 years, 2 months ago (2013-10-17 13:12:42 UTC) #2
alph
https://codereview.chromium.org/27694004/diff/1/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (left): https://codereview.chromium.org/27694004/diff/1/src/heap-snapshot-generator.cc#oldcode517 src/heap-snapshot-generator.cc:517: CHECK_EQ(obj->Size(), static_cast<int>(entry_info.size)); Why did you remove the size check? ...
7 years, 2 months ago (2013-10-17 13:17:24 UTC) #3
yurys
lgtm https://codereview.chromium.org/27694004/diff/1/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/27694004/diff/1/src/flag-definitions.h#newcode546 src/flag-definitions.h:546: DEFINE_bool(heap_profiler_trace_objects, false, May be log_heap_profiler https://codereview.chromium.org/27694004/diff/1/src/flag-definitions.h#newcode547 src/flag-definitions.h:547: "dump ...
7 years, 2 months ago (2013-10-17 13:20:54 UTC) #4
loislo
https://codereview.chromium.org/27694004/diff/1/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/27694004/diff/1/src/flag-definitions.h#newcode546 src/flag-definitions.h:546: DEFINE_bool(heap_profiler_trace_objects, false, On 2013/10/17 13:20:54, Yury Semikhatsky wrote: > ...
7 years, 2 months ago (2013-10-17 13:34:12 UTC) #5
loislo
7 years, 2 months ago (2013-10-17 13:35:23 UTC) #6
alph
https://codereview.chromium.org/27694004/diff/28001/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/27694004/diff/28001/src/heap-snapshot-generator.cc#newcode619 src/heap-snapshot-generator.cc:619: if (last_printed_object != i - 1) { nit: int ...
7 years, 2 months ago (2013-10-17 16:31:46 UTC) #7
Sven Panne
LGTM, although I can't really comment on the profiler part...
7 years, 2 months ago (2013-10-18 06:48:56 UTC) #8
loislo
Committed patchset #8 manually as r17258 (presubmit successful).
7 years, 2 months ago (2013-10-18 07:43:59 UTC) #9
loislo
Committed patchset #8 manually as r17263 (presubmit successful).
7 years, 2 months ago (2013-10-18 09:40:08 UTC) #10
loislo
7 years, 2 months ago (2013-10-18 11:00:03 UTC) #11
Message was sent while issue was closed.
Committed patchset #9 manually as r17269 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698