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

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

Issue 1546033002: Switch to standard integer types in base/trace_event/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 #ifndef BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ 5 #ifndef BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_
6 #define BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ 6 #define BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_
7 7
8 #include <stddef.h>
9
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/base_export.h" 12 #include "base/base_export.h"
11 #include "base/containers/hash_tables.h" 13 #include "base/containers/hash_tables.h"
12 #include "base/containers/small_map.h" 14 #include "base/containers/small_map.h"
15 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_vector.h" 17 #include "base/memory/scoped_vector.h"
15 #include "base/trace_event/memory_allocator_dump.h" 18 #include "base/trace_event/memory_allocator_dump.h"
16 #include "base/trace_event/memory_allocator_dump_guid.h" 19 #include "base/trace_event/memory_allocator_dump_guid.h"
17 #include "base/trace_event/memory_dump_session_state.h" 20 #include "base/trace_event/memory_dump_session_state.h"
18 #include "base/trace_event/process_memory_maps.h" 21 #include "base/trace_event/process_memory_maps.h"
19 #include "base/trace_event/process_memory_totals.h" 22 #include "base/trace_event/process_memory_totals.h"
23 #include "build/build_config.h"
20 24
21 // Define COUNT_RESIDENT_BYTES_SUPPORTED if platform supports counting of the 25 // Define COUNT_RESIDENT_BYTES_SUPPORTED if platform supports counting of the
22 // resident memory. 26 // resident memory.
23 // TODO(crbug.com/542671): COUNT_RESIDENT_BYTES_SUPPORTED is disabled on iOS 27 // TODO(crbug.com/542671): COUNT_RESIDENT_BYTES_SUPPORTED is disabled on iOS
24 // as it cause memory corruption on iOS 9.0+ devices. 28 // as it cause memory corruption on iOS 9.0+ devices.
25 #if defined(OS_POSIX) && !defined(OS_NACL) && !defined(OS_IOS) 29 #if defined(OS_POSIX) && !defined(OS_NACL) && !defined(OS_IOS)
26 #define COUNT_RESIDENT_BYTES_SUPPORTED 30 #define COUNT_RESIDENT_BYTES_SUPPORTED
27 #endif 31 #endif
28 32
29 namespace base { 33 namespace base {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Keeps track of relationships between MemoryAllocatorDump(s). 182 // Keeps track of relationships between MemoryAllocatorDump(s).
179 std::vector<MemoryAllocatorDumpEdge> allocator_dumps_edges_; 183 std::vector<MemoryAllocatorDumpEdge> allocator_dumps_edges_;
180 184
181 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryDump); 185 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryDump);
182 }; 186 };
183 187
184 } // namespace trace_event 188 } // namespace trace_event
185 } // namespace base 189 } // namespace base
186 190
187 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ 191 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_
OLDNEW
« no previous file with comments | « base/trace_event/memory_dump_manager_unittest.cc ('k') | base/trace_event/process_memory_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698