| 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_MEMORY_ALLOCATOR_DUMP_H_ | 5 #ifndef BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_ |
| 6 #define BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_ | 6 #define BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // MemoryAllocatorDump is owned by ProcessMemoryDump. | 27 // MemoryAllocatorDump is owned by ProcessMemoryDump. |
| 28 MemoryAllocatorDump(const std::string& absolute_name, | 28 MemoryAllocatorDump(const std::string& absolute_name, |
| 29 ProcessMemoryDump* process_memory_dump, | 29 ProcessMemoryDump* process_memory_dump, |
| 30 const MemoryAllocatorDumpGuid& guid); | 30 const MemoryAllocatorDumpGuid& guid); |
| 31 MemoryAllocatorDump(const std::string& absolute_name, | 31 MemoryAllocatorDump(const std::string& absolute_name, |
| 32 ProcessMemoryDump* process_memory_dump); | 32 ProcessMemoryDump* process_memory_dump); |
| 33 ~MemoryAllocatorDump(); | 33 ~MemoryAllocatorDump(); |
| 34 | 34 |
| 35 // Standard attribute |name|s for the AddScalar and AddString() methods. | 35 // Standard attribute |name|s for the AddScalar and AddString() methods. |
| 36 static const char kNameSize[]; // To represent allocated space. | 36 static const char kNameSize[]; // To represent allocated space. |
| 37 static const char kNameObjectsCount[]; // To represent number of objects. | 37 static const char kNameObjectCount[]; // To represent number of objects. |
| 38 | 38 |
| 39 // Standard attribute |unit|s for the AddScalar and AddString() methods. | 39 // Standard attribute |unit|s for the AddScalar and AddString() methods. |
| 40 static const char kUnitsBytes[]; // Unit name to represent bytes. | 40 static const char kUnitsBytes[]; // Unit name to represent bytes. |
| 41 static const char kUnitsObjects[]; // Unit name to represent #objects. | 41 static const char kUnitsObjects[]; // Unit name to represent #objects. |
| 42 | 42 |
| 43 // Constants used only internally and by tests. | 43 // Constants used only internally and by tests. |
| 44 static const char kTypeScalar[]; // Type name for scalar attributes. | 44 static const char kTypeScalar[]; // Type name for scalar attributes. |
| 45 static const char kTypeString[]; // Type name for string attributes. | 45 static const char kTypeString[]; // Type name for string attributes. |
| 46 | 46 |
| 47 // Setters for scalar attributes. Some examples: | 47 // Setters for scalar attributes. Some examples: |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // temporary strings on each AddScalar() call. | 86 // temporary strings on each AddScalar() call. |
| 87 std::string string_conversion_buffer_; | 87 std::string string_conversion_buffer_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(MemoryAllocatorDump); | 89 DISALLOW_COPY_AND_ASSIGN(MemoryAllocatorDump); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace trace_event | 92 } // namespace trace_event |
| 93 } // namespace base | 93 } // namespace base |
| 94 | 94 |
| 95 #endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_ | 95 #endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_ |
| OLD | NEW |