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

Unified Diff: runtime/vm/zone.cc

Issue 11428067: Merge the Merlin heap tracing to top-of-trunk. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 8 years 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/vm_sources.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/zone.cc
diff --git a/runtime/vm/zone.cc b/runtime/vm/zone.cc
index 5227b163e233f4ddd81e1916f0214da1c4c00ab2..5a2629dff3a197b3b0dfceadb31cc6f3524d5f68 100644
--- a/runtime/vm/zone.cc
+++ b/runtime/vm/zone.cc
@@ -7,6 +7,8 @@
#include "platform/assert.h"
#include "platform/utils.h"
#include "vm/flags.h"
+#include "vm/heap.h"
+#include "vm/heap_trace.h"
#include "vm/isolate.h"
#include "vm/os.h"
@@ -91,6 +93,10 @@ Zone::Zone()
Zone::~Zone() {
DeleteAll();
+ if (HeapTrace::is_enabled()) {
+ Isolate* isolate = Isolate::Current();
+ isolate->heap()->trace()->TraceDeleteZone(this);
+ }
#if defined(DEBUG)
if (FLAG_trace_zone_sizes) {
DumpZoneSizes();
« no previous file with comments | « runtime/vm/vm_sources.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698