| Index: src/profile-generator.cc
|
| diff --git a/src/profile-generator.cc b/src/profile-generator.cc
|
| index 525dea2fbaa0cf71a010c316e6b58309250ad866..41978b16b8704ab42a6b052c9a79a32f361f5604 100644
|
| --- a/src/profile-generator.cc
|
| +++ b/src/profile-generator.cc
|
| @@ -952,8 +952,8 @@ void HeapEntry::PaintAllReachable() {
|
|
|
|
|
| void HeapEntry::Print(int max_depth, int indent) {
|
| - OS::Print("%6d %6d %6d [%ld] ",
|
| - self_size(), ReachableSize(), RetainedSize(), id_);
|
| + OS::Print("%6d %6d %6d [%llu, %d] ",
|
| + self_size(), ReachableSize(), RetainedSize(), id_, painted_);
|
| if (type() != kString) {
|
| OS::Print("%s %.40s\n", TypeAsString(), name_);
|
| } else {
|
| @@ -1237,7 +1237,7 @@ HeapSnapshot::HeapSnapshot(HeapSnapshotsCollection* collection,
|
| type_(type),
|
| title_(title),
|
| uid_(uid),
|
| - root_entry_index_(-1),
|
| + root_entry_(NULL),
|
| raw_entries_(NULL),
|
| entries_sorted_(false) {
|
| STATIC_ASSERT(
|
| @@ -1276,11 +1276,11 @@ HeapEntry* HeapSnapshot::AddEntry(HeapObject* object,
|
| int children_count,
|
| int retainers_count) {
|
| if (object == kInternalRootObject) {
|
| - ASSERT(root_entry_index_ == -1);
|
| - root_entry_index_ = entries_.length();
|
| + ASSERT(root_entry_ == NULL);
|
| ASSERT(retainers_count == 0);
|
| - return AddEntry(
|
| + root_entry_ = AddEntry(
|
| HeapEntry::kInternal, "", 0, 0, children_count, retainers_count);
|
| + return root_entry_;
|
| } else if (object->IsJSFunction()) {
|
| JSFunction* func = JSFunction::cast(object);
|
| SharedFunctionInfo* shared = func->shared();
|
|
|