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

Unified Diff: runtime/vm/scavenger.cc

Issue 10452006: Implement a heap profiler for the Dart managed heap. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address final review comments Created 8 years, 6 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 | « runtime/vm/scavenger.h ('k') | runtime/vm/unicode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scavenger.cc
diff --git a/runtime/vm/scavenger.cc b/runtime/vm/scavenger.cc
index f42b65b1bf753e1583f6655e15dcbb44a2834f64..2bf47b7864c6932d7706d72afe7265b616172817 100644
--- a/runtime/vm/scavenger.cc
+++ b/runtime/vm/scavenger.cc
@@ -354,6 +354,16 @@ void Scavenger::VisitObjectPointers(ObjectPointerVisitor* visitor) const {
}
+void Scavenger::VisitObjects(ObjectVisitor* visitor) const {
+ uword cur = FirstObjectStart();
+ while (cur < top_) {
+ RawObject* raw_obj = RawObject::FromAddr(cur);
+ visitor->VisitObject(raw_obj);
+ cur += raw_obj->Size();
+ }
+}
+
+
void Scavenger::Scavenge() {
// TODO(cshapiro): Add a decision procedure for determining when the
// the API callbacks should be invoked.
« no previous file with comments | « runtime/vm/scavenger.h ('k') | runtime/vm/unicode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698