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

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

Issue 1573313002: Add support for CountResidentBytes in windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format. Created 4 years, 11 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/process_memory_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_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> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/base_export.h" 12 #include "base/base_export.h"
13 #include "base/containers/hash_tables.h" 13 #include "base/containers/hash_tables.h"
14 #include "base/containers/small_map.h" 14 #include "base/containers/small_map.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_vector.h" 17 #include "base/memory/scoped_vector.h"
18 #include "base/trace_event/memory_allocator_dump.h" 18 #include "base/trace_event/memory_allocator_dump.h"
19 #include "base/trace_event/memory_allocator_dump_guid.h" 19 #include "base/trace_event/memory_allocator_dump_guid.h"
20 #include "base/trace_event/memory_dump_session_state.h" 20 #include "base/trace_event/memory_dump_session_state.h"
21 #include "base/trace_event/process_memory_maps.h" 21 #include "base/trace_event/process_memory_maps.h"
22 #include "base/trace_event/process_memory_totals.h" 22 #include "base/trace_event/process_memory_totals.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 24
25 // Define COUNT_RESIDENT_BYTES_SUPPORTED if platform supports counting of the 25 // Define COUNT_RESIDENT_BYTES_SUPPORTED if platform supports counting of the
26 // resident memory. 26 // resident memory.
27 // 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
28 // as it cause memory corruption on iOS 9.0+ devices. 28 // as it cause memory corruption on iOS 9.0+ devices.
29 #if defined(OS_POSIX) && !defined(OS_NACL) && !defined(OS_IOS) 29 #if (defined(OS_POSIX) && !defined(OS_NACL) && !defined(OS_IOS)) || \
30 defined(OS_WIN)
30 #define COUNT_RESIDENT_BYTES_SUPPORTED 31 #define COUNT_RESIDENT_BYTES_SUPPORTED
31 #endif 32 #endif
32 33
33 namespace base { 34 namespace base {
34 namespace trace_event { 35 namespace trace_event {
35 36
36 class ConvertableToTraceFormat; 37 class ConvertableToTraceFormat;
37 class MemoryDumpManager; 38 class MemoryDumpManager;
38 class MemoryDumpSessionState; 39 class MemoryDumpSessionState;
39 class TracedValue; 40 class TracedValue;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Keeps track of relationships between MemoryAllocatorDump(s). 183 // Keeps track of relationships between MemoryAllocatorDump(s).
183 std::vector<MemoryAllocatorDumpEdge> allocator_dumps_edges_; 184 std::vector<MemoryAllocatorDumpEdge> allocator_dumps_edges_;
184 185
185 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryDump); 186 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryDump);
186 }; 187 };
187 188
188 } // namespace trace_event 189 } // namespace trace_event
189 } // namespace base 190 } // namespace base
190 191
191 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_ 192 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_
OLDNEW
« no previous file with comments | « no previous file | base/trace_event/process_memory_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698