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

Side by Side Diff: base/trace_event/memory_allocator_dump.h

Issue 1334673004: Memory-infra: Change "objects_count" to "object_count" in category name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@locked_discarded_20150910
Patch Set: Rebased Created 5 years, 3 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
« no previous file with comments | « no previous file | base/trace_event/memory_allocator_dump.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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_
OLDNEW
« no previous file with comments | « no previous file | base/trace_event/memory_allocator_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698