Index: base/trace_event/memory_allocator_dump.cc |
diff --git a/base/trace_event/memory_allocator_dump.cc b/base/trace_event/memory_allocator_dump.cc |
index 5c5af7ee45842e716b92c5fcf7018641a3bfb023..8f9ab40ae55db12c971b685f7d18c2c71ffdbcbb 100644 |
--- a/base/trace_event/memory_allocator_dump.cc |
+++ b/base/trace_event/memory_allocator_dump.cc |
@@ -28,7 +28,8 @@ MemoryAllocatorDump::MemoryAllocatorDump(const std::string& absolute_name, |
: absolute_name_(absolute_name), |
process_memory_dump_(process_memory_dump), |
attributes_(new TracedValue), |
- guid_(guid) { |
+ guid_(guid), |
+ flags_(0) { |
// The |absolute_name| cannot be empty. |
DCHECK(!absolute_name.empty()); |
@@ -90,6 +91,8 @@ void MemoryAllocatorDump::AsValueInto(TracedValue* value) const { |
value->BeginDictionaryWithCopiedName(absolute_name_); |
value->SetString("guid", guid_.ToString()); |
value->SetValue("attrs", *attributes_); |
+ if (flags_) |
+ value->SetInteger("flags", static_cast<int>(flags_)); |
Primiano Tucci (use gerrit)
2016/01/19 17:07:11
and here you'd avoid the cast :)
ssid
2016/01/20 18:58:34
Done.
|
value->EndDictionary(); // "allocator_name/heap_subheap": { ... } |
} |