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

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

Issue 2049143002: [memory-infra] Log reasons for memory dump failure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Shorten constant name Created 4 years, 6 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_dump_manager.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_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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 22 matching lines...) Expand all
33 class MemoryDumpManagerDelegate; 33 class MemoryDumpManagerDelegate;
34 class MemoryDumpProvider; 34 class MemoryDumpProvider;
35 class MemoryDumpSessionState; 35 class MemoryDumpSessionState;
36 36
37 // This is the interface exposed to the rest of the codebase to deal with 37 // This is the interface exposed to the rest of the codebase to deal with
38 // memory tracing. The main entry point for clients is represented by 38 // memory tracing. The main entry point for clients is represented by
39 // RequestDumpPoint(). The extension by Un(RegisterDumpProvider). 39 // RequestDumpPoint(). The extension by Un(RegisterDumpProvider).
40 class BASE_EXPORT MemoryDumpManager : public TraceLog::EnabledStateObserver { 40 class BASE_EXPORT MemoryDumpManager : public TraceLog::EnabledStateObserver {
41 public: 41 public:
42 static const char* const kTraceCategory; 42 static const char* const kTraceCategory;
43 static const char* const kLogPrefix;
43 44
44 // This value is returned as the tracing id of the child processes by 45 // This value is returned as the tracing id of the child processes by
45 // GetTracingProcessId() when tracing is not enabled. 46 // GetTracingProcessId() when tracing is not enabled.
46 static const uint64_t kInvalidTracingProcessId; 47 static const uint64_t kInvalidTracingProcessId;
47 48
48 static MemoryDumpManager* GetInstance(); 49 static MemoryDumpManager* GetInstance();
49 50
50 // Invoked once per process to listen to trace begin / end events. 51 // Invoked once per process to listen to trace begin / end events.
51 // Initialization can happen after (Un)RegisterMemoryDumpProvider() calls 52 // Initialization can happen after (Un)RegisterMemoryDumpProvider() calls
52 // and the MemoryDumpManager guarantees to support this. 53 // and the MemoryDumpManager guarantees to support this.
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 } 397 }
397 398
398 private: 399 private:
399 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegate); 400 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegate);
400 }; 401 };
401 402
402 } // namespace trace_event 403 } // namespace trace_event
403 } // namespace base 404 } // namespace base
404 405
405 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ 406 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | base/trace_event/memory_dump_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698