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

Issue 11881010: - Dump Smi objects into the heap profile. (Closed)

Created:
7 years, 11 months ago by Ivan Posva
Modified:
7 years, 11 months ago
Reviewers:
cshapiro, siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

- Dump Smi objects into the heap profile. Committed: https://code.google.com/p/dart/source/detail?r=17036

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
M runtime/vm/heap_profiler.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/heap_profiler.cc View 3 chunks +27 lines, -0 lines 6 comments Download

Messages

Total messages: 7 (0 generated)
Ivan Posva
7 years, 11 months ago (2013-01-12 01:50:14 UTC) #1
cshapiro
LGTM with comment Per my note in heap_profiler.cc consider moving and renaming WriteSmiDump. You will ...
7 years, 11 months ago (2013-01-12 02:52:15 UTC) #2
cshapiro
https://codereview.chromium.org/11881010/diff/1/runtime/vm/heap_profiler.cc File runtime/vm/heap_profiler.cc (right): https://codereview.chromium.org/11881010/diff/1/runtime/vm/heap_profiler.cc#newcode127 runtime/vm/heap_profiler.cc:127: for (std::set<const RawSmi*>::iterator it = smi_table_.begin(); You might consider ...
7 years, 11 months ago (2013-01-12 02:52:26 UTC) #3
Ivan Posva
https://codereview.chromium.org/11881010/diff/1/runtime/vm/heap_profiler.cc File runtime/vm/heap_profiler.cc (right): https://codereview.chromium.org/11881010/diff/1/runtime/vm/heap_profiler.cc#newcode574 runtime/vm/heap_profiler.cc:574: // INSTANCE DUMP - 0x21 On 2013/01/12 02:52:26, cshapiro ...
7 years, 11 months ago (2013-01-14 23:38:42 UTC) #4
siva
lgtm https://codereview.chromium.org/11881010/diff/1/runtime/vm/heap_profiler.cc File runtime/vm/heap_profiler.cc (right): https://codereview.chromium.org/11881010/diff/1/runtime/vm/heap_profiler.cc#newcode586 runtime/vm/heap_profiler.cc:586: sub.WriteObjectId(raw_smi); Since we are writing out smi values ...
7 years, 11 months ago (2013-01-14 23:50:13 UTC) #5
Ivan Posva
https://codereview.chromium.org/11881010/diff/1/runtime/vm/heap_profiler.cc File runtime/vm/heap_profiler.cc (right): https://codereview.chromium.org/11881010/diff/1/runtime/vm/heap_profiler.cc#newcode586 runtime/vm/heap_profiler.cc:586: sub.WriteObjectId(raw_smi); On 2013/01/14 23:50:13, siva wrote: > Since we ...
7 years, 11 months ago (2013-01-14 23:53:38 UTC) #6
cshapiro
7 years, 11 months ago (2013-01-14 23:55:22 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/11881010/diff/1/runtime/vm/heap_profiler.cc
File runtime/vm/heap_profiler.cc (right):

https://codereview.chromium.org/11881010/diff/1/runtime/vm/heap_profiler.cc#n...
runtime/vm/heap_profiler.cc:586: sub.WriteObjectId(raw_smi);
It should not.  We use an object's address as its it, tag included.  I use some
magic small odd values (small enough that they would fit on page 0) to designate
non-existent classes to keep this convention consistent even when real heap
addresses are unused.

Powered by Google App Engine
This is Rietveld 408576698