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

Unified Diff: src/profile-generator-inl.h

Issue 10416035: Eliminate dominator and retained_size fields. They are calculating on front-end side. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comments addressed Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/profile-generator.cc ('k') | test/cctest/test-heap-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/profile-generator-inl.h
diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h
index 9afc52fa080a37d1daf91b130701854c125086b4..6c64350e8d149c5836829b70626970c47798cf11 100644
--- a/src/profile-generator-inl.h
+++ b/src/profile-generator-inl.h
@@ -118,32 +118,12 @@ int HeapEntry::set_children_index(int index) {
}
-int HeapEntry::set_retainers_index(int index) {
- retainers_index_ = index;
- int next_index = index + retainers_count_;
- retainers_count_ = 0;
- return next_index;
-}
-
-
HeapGraphEdge** HeapEntry::children_arr() {
ASSERT(children_index_ >= 0);
return &snapshot_->children()[children_index_];
}
-HeapGraphEdge** HeapEntry::retainers_arr() {
- ASSERT(retainers_index_ >= 0);
- return &snapshot_->retainers()[retainers_index_];
-}
-
-
-HeapEntry* HeapEntry::dominator() const {
- ASSERT(dominator_ >= 0);
- return &snapshot_->entries()[dominator_];
-}
-
-
SnapshotObjectId HeapObjectsMap::GetNthGcSubrootId(int delta) {
return kGcRootsFirstSubrootId + delta * kObjectIdStep;
}
« no previous file with comments | « src/profile-generator.cc ('k') | test/cctest/test-heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698