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

Unified Diff: src/zone/zone.cc

Issue 2397573007: Added zone tracing (Closed)
Patch Set: Reaction to comments Created 4 years, 2 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
« src/isolate.cc ('K') | « src/zone/zone.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone/zone.cc
diff --git a/src/zone/zone.cc b/src/zone/zone.cc
index fd0b14733cd21f5d55e9eef95b0143b5f14d400f..7228081d7d75825d362229d5a28c4f2312700373 100644
--- a/src/zone/zone.cc
+++ b/src/zone/zone.cc
@@ -41,15 +41,20 @@ const size_t kASanRedzoneBytes = 0;
} // namespace
-Zone::Zone(AccountingAllocator* allocator)
+Zone::Zone(AccountingAllocator* allocator, const char* name)
: allocation_size_(0),
segment_bytes_allocated_(0),
position_(0),
limit_(0),
allocator_(allocator),
- segment_head_(nullptr) {}
+ segment_head_(nullptr),
+ name_(name) {
+ allocator_->ZoneCreation(this);
+}
Zone::~Zone() {
+ allocator_->ZoneDestruction(this);
+
DeleteAll();
DCHECK(segment_bytes_allocated_ == 0);
« src/isolate.cc ('K') | « src/zone/zone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698