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

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

Issue 2693063002: Renamed /services/memory_infrastructure to /services/resource_coordinator (Closed)
Patch Set: Review fix Created 3 years, 10 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 | mojo/public/tools/bindings/chromium_bindings_configuration.gni » ('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_DUMP_REQUEST_ARGS_H_ 5 #ifndef BASE_TRACE_EVENT_MEMORY_DUMP_REQUEST_ARGS_H_
6 #define BASE_TRACE_EVENT_MEMORY_DUMP_REQUEST_ARGS_H_ 6 #define BASE_TRACE_EVENT_MEMORY_DUMP_REQUEST_ARGS_H_
7 7
8 // This file defines the types and structs used to issue memory dump requests. 8 // This file defines the types and structs used to issue memory dump requests.
9 // These are also used in the IPCs for coordinating inter-process memory dumps. 9 // These are also used in the IPCs for coordinating inter-process memory dumps.
10 10
11 #include <stdint.h> 11 #include <stdint.h>
12 #include <string> 12 #include <string>
13 13
14 #include "base/base_export.h" 14 #include "base/base_export.h"
15 #include "base/callback.h" 15 #include "base/callback.h"
16 16
17 namespace base { 17 namespace base {
18 namespace trace_event { 18 namespace trace_event {
19 19
20 // Captures the reason why a memory dump is being requested. This is to allow 20 // Captures the reason why a memory dump is being requested. This is to allow
21 // selective enabling of dumps, filtering and post-processing. Important: this 21 // selective enabling of dumps, filtering and post-processing. Important: this
22 // must be kept consistent with 22 // must be kept consistent with
23 // services/memory_infra/public/cpp/memory_infra_traits.cc. 23 // services/resource_coordinator/public/cpp/memory/memory_infra_traits.cc.
24 enum class MemoryDumpType { 24 enum class MemoryDumpType {
25 PERIODIC_INTERVAL, // Dumping memory at periodic intervals. 25 PERIODIC_INTERVAL, // Dumping memory at periodic intervals.
26 EXPLICITLY_TRIGGERED, // Non maskable dump request. 26 EXPLICITLY_TRIGGERED, // Non maskable dump request.
27 PEAK_MEMORY_USAGE, // Dumping memory at detected peak total memory usage. 27 PEAK_MEMORY_USAGE, // Dumping memory at detected peak total memory usage.
28 LAST = PEAK_MEMORY_USAGE // For IPC macros. 28 LAST = PEAK_MEMORY_USAGE // For IPC macros.
29 }; 29 };
30 30
31 // Tells the MemoryDumpProvider(s) how much detailed their dumps should be. 31 // Tells the MemoryDumpProvider(s) how much detailed their dumps should be.
32 // Important: this must be kept consistent with 32 // Important: this must be kept consistent with
33 // services/memory_infra/public/cpp/memory_infra_traits.cc. 33 // services/resource_Coordinator/public/cpp/memory/memory_infra_traits.cc.
34 enum class MemoryDumpLevelOfDetail : uint32_t { 34 enum class MemoryDumpLevelOfDetail : uint32_t {
35 FIRST, 35 FIRST,
36 36
37 // For background tracing mode. The dump time is quick, and typically just the 37 // For background tracing mode. The dump time is quick, and typically just the
38 // totals are expected. Suballocations need not be specified. Dump name must 38 // totals are expected. Suballocations need not be specified. Dump name must
39 // contain only pre-defined strings and string arguments cannot be added. 39 // contain only pre-defined strings and string arguments cannot be added.
40 BACKGROUND = FIRST, 40 BACKGROUND = FIRST,
41 41
42 // For the levels below, MemoryDumpProvider instances must guarantee that the 42 // For the levels below, MemoryDumpProvider instances must guarantee that the
43 // total size reported in the root node is consistent. Only the granularity of 43 // total size reported in the root node is consistent. Only the granularity of
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 BASE_EXPORT const char* MemoryDumpLevelOfDetailToString( 81 BASE_EXPORT const char* MemoryDumpLevelOfDetailToString(
82 const MemoryDumpLevelOfDetail& level_of_detail); 82 const MemoryDumpLevelOfDetail& level_of_detail);
83 83
84 BASE_EXPORT MemoryDumpLevelOfDetail 84 BASE_EXPORT MemoryDumpLevelOfDetail
85 StringToMemoryDumpLevelOfDetail(const std::string& str); 85 StringToMemoryDumpLevelOfDetail(const std::string& str);
86 86
87 } // namespace trace_event 87 } // namespace trace_event
88 } // namespace base 88 } // namespace base
89 89
90 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_REQUEST_ARGS_H_ 90 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_REQUEST_ARGS_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/public/tools/bindings/chromium_bindings_configuration.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698