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_DUMP_MANAGER_H_ | 5 #ifndef BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ |
6 #define BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ | 6 #define BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/atomicops.h" | 10 #include "base/atomicops.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 class MemoryDumpManagerDelegate; | 26 class MemoryDumpManagerDelegate; |
27 class MemoryDumpProvider; | 27 class MemoryDumpProvider; |
28 class MemoryDumpSessionState; | 28 class MemoryDumpSessionState; |
29 | 29 |
30 // This is the interface exposed to the rest of the codebase to deal with | 30 // This is the interface exposed to the rest of the codebase to deal with |
31 // memory tracing. The main entry point for clients is represented by | 31 // memory tracing. The main entry point for clients is represented by |
32 // RequestDumpPoint(). The extension by Un(RegisterDumpProvider). | 32 // RequestDumpPoint(). The extension by Un(RegisterDumpProvider). |
33 class BASE_EXPORT MemoryDumpManager : public TraceLog::EnabledStateObserver { | 33 class BASE_EXPORT MemoryDumpManager : public TraceLog::EnabledStateObserver { |
34 public: | 34 public: |
35 static const char* const kTraceCategoryForTesting; | 35 static const char* const kTraceCategory; |
36 | 36 |
37 // This value is returned as the tracing id of the child processes by | 37 // This value is returned as the tracing id of the child processes by |
38 // GetTracingProcessId() when tracing is not enabled. | 38 // GetTracingProcessId() when tracing is not enabled. |
39 static const uint64 kInvalidTracingProcessId; | 39 static const uint64 kInvalidTracingProcessId; |
40 | 40 |
41 static MemoryDumpManager* GetInstance(); | 41 static MemoryDumpManager* GetInstance(); |
42 | 42 |
43 // Invoked once per process to register the TraceLog observer. | 43 // Invoked once per process to register the TraceLog observer. |
44 void Initialize(); | 44 void Initialize(); |
45 | 45 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 } | 260 } |
261 | 261 |
262 private: | 262 private: |
263 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegate); | 263 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegate); |
264 }; | 264 }; |
265 | 265 |
266 } // namespace trace_event | 266 } // namespace trace_event |
267 } // namespace base | 267 } // namespace base |
268 | 268 |
269 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ | 269 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ |
OLD | NEW |