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

Unified Diff: src/zone/zone.h

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
Index: src/zone/zone.h
diff --git a/src/zone/zone.h b/src/zone/zone.h
index f97662ab20ab9e7aad2f4c98588d3ab43ff8f720..00a254a661530bacf79014f6e566fc8404ab8740 100644
--- a/src/zone/zone.h
+++ b/src/zone/zone.h
@@ -31,7 +31,7 @@ namespace internal {
// from multi-threaded code.
class V8_EXPORT_PRIVATE Zone final {
public:
- explicit Zone(AccountingAllocator* allocator);
+ explicit Zone(AccountingAllocator* allocator, const char* name = "unnamed");
~Zone();
// Allocate 'size' bytes of memory in the Zone; expands the Zone by
@@ -50,6 +50,8 @@ class V8_EXPORT_PRIVATE Zone final {
return segment_bytes_allocated_ > kExcessLimit;
}
+ const char* name() const { return name_; }
+
size_t allocation_size() const { return allocation_size_; }
AccountingAllocator* allocator() const { return allocator_; }
@@ -104,6 +106,7 @@ class V8_EXPORT_PRIVATE Zone final {
AccountingAllocator* allocator_;
Segment* segment_head_;
+ const char* name_;
};
// ZoneObject is an abstraction that helps define classes of objects
« src/isolate.cc ('K') | « src/zone/accounting-allocator.h ('k') | src/zone/zone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698