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

Side by Side Diff: base/trace_event/trace_event_memory_overhead.cc

Issue 2650863003: [tracing] Switch to new heap dump format. (Closed)
Patch Set: Rebase Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/trace_event/trace_event_memory_overhead.h" 5 #include "base/trace_event/trace_event_memory_overhead.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bits.h" 9 #include "base/bits.h"
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
(...skipping 23 matching lines...) Expand all
34 case TraceEventMemoryOverhead::kTracedValue: 34 case TraceEventMemoryOverhead::kTracedValue:
35 return "TracedValue"; 35 return "TracedValue";
36 case TraceEventMemoryOverhead::kConvertableToTraceFormat: 36 case TraceEventMemoryOverhead::kConvertableToTraceFormat:
37 return "ConvertableToTraceFormat"; 37 return "ConvertableToTraceFormat";
38 case TraceEventMemoryOverhead::kHeapProfilerAllocationRegister: 38 case TraceEventMemoryOverhead::kHeapProfilerAllocationRegister:
39 return "AllocationRegister"; 39 return "AllocationRegister";
40 case TraceEventMemoryOverhead::kHeapProfilerTypeNameDeduplicator: 40 case TraceEventMemoryOverhead::kHeapProfilerTypeNameDeduplicator:
41 return "TypeNameDeduplicator"; 41 return "TypeNameDeduplicator";
42 case TraceEventMemoryOverhead::kHeapProfilerStackFrameDeduplicator: 42 case TraceEventMemoryOverhead::kHeapProfilerStackFrameDeduplicator:
43 return "StackFrameDeduplicator"; 43 return "StackFrameDeduplicator";
44 case TraceEventMemoryOverhead::kHeapProfilerStringDeduplicator:
45 return "StringDeduplicator";
44 case TraceEventMemoryOverhead::kStdString: 46 case TraceEventMemoryOverhead::kStdString:
45 return "std::string"; 47 return "std::string";
46 case TraceEventMemoryOverhead::kBaseValue: 48 case TraceEventMemoryOverhead::kBaseValue:
47 return "base::Value"; 49 return "base::Value";
48 case TraceEventMemoryOverhead::kTraceEventMemoryOverhead: 50 case TraceEventMemoryOverhead::kTraceEventMemoryOverhead:
49 return "TraceEventMemoryOverhead"; 51 return "TraceEventMemoryOverhead";
50 case TraceEventMemoryOverhead::kLast: 52 case TraceEventMemoryOverhead::kLast:
51 NOTREACHED(); 53 NOTREACHED();
52 } 54 }
53 NOTREACHED(); 55 NOTREACHED();
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 count_and_size.allocated_size_in_bytes); 170 count_and_size.allocated_size_in_bytes);
169 mad->AddScalar("resident_size", MemoryAllocatorDump::kUnitsBytes, 171 mad->AddScalar("resident_size", MemoryAllocatorDump::kUnitsBytes,
170 count_and_size.resident_size_in_bytes); 172 count_and_size.resident_size_in_bytes);
171 mad->AddScalar(MemoryAllocatorDump::kNameObjectCount, 173 mad->AddScalar(MemoryAllocatorDump::kNameObjectCount,
172 MemoryAllocatorDump::kUnitsObjects, count_and_size.count); 174 MemoryAllocatorDump::kUnitsObjects, count_and_size.count);
173 } 175 }
174 } 176 }
175 177
176 } // namespace trace_event 178 } // namespace trace_event
177 } // namespace base 179 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698