OLD | NEW |
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 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_MEMORY_OVERHEAD_H_ | 5 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_MEMORY_OVERHEAD_H_ |
6 #define BASE_TRACE_EVENT_TRACE_EVENT_MEMORY_OVERHEAD_H_ | 6 #define BASE_TRACE_EVENT_TRACE_EVENT_MEMORY_OVERHEAD_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 kOther = 0, | 29 kOther = 0, |
30 kTraceBuffer, | 30 kTraceBuffer, |
31 kTraceBufferChunk, | 31 kTraceBufferChunk, |
32 kTraceEvent, | 32 kTraceEvent, |
33 kUnusedTraceEvent, | 33 kUnusedTraceEvent, |
34 kTracedValue, | 34 kTracedValue, |
35 kConvertableToTraceFormat, | 35 kConvertableToTraceFormat, |
36 kHeapProfilerAllocationRegister, | 36 kHeapProfilerAllocationRegister, |
37 kHeapProfilerTypeNameDeduplicator, | 37 kHeapProfilerTypeNameDeduplicator, |
38 kHeapProfilerStackFrameDeduplicator, | 38 kHeapProfilerStackFrameDeduplicator, |
| 39 kHeapProfilerStringDeduplicator, |
39 kStdString, | 40 kStdString, |
40 kBaseValue, | 41 kBaseValue, |
41 kTraceEventMemoryOverhead, | 42 kTraceEventMemoryOverhead, |
42 kLast | 43 kLast |
43 }; | 44 }; |
44 | 45 |
45 TraceEventMemoryOverhead(); | 46 TraceEventMemoryOverhead(); |
46 ~TraceEventMemoryOverhead(); | 47 ~TraceEventMemoryOverhead(); |
47 | 48 |
48 // Use this method to account the overhead of an object for which an estimate | 49 // Use this method to account the overhead of an object for which an estimate |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 size_t allocated_size_in_bytes, | 86 size_t allocated_size_in_bytes, |
86 size_t resident_size_in_bytes); | 87 size_t resident_size_in_bytes); |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(TraceEventMemoryOverhead); | 89 DISALLOW_COPY_AND_ASSIGN(TraceEventMemoryOverhead); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace trace_event | 92 } // namespace trace_event |
92 } // namespace base | 93 } // namespace base |
93 | 94 |
94 #endif // BASE_TRACE_EVENT_TRACE_EVENT_MEMORY_OVERHEAD_H_ | 95 #endif // BASE_TRACE_EVENT_TRACE_EVENT_MEMORY_OVERHEAD_H_ |
OLD | NEW |