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

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

Issue 1337943003: [tracing] Non-functional refactor of memory dump arg names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows test Created 5 years, 3 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
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 <set> 8 #include <set>
9 9
10 #include "base/atomicops.h" 10 #include "base/atomicops.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // |mdp| will be issues on the given thread. Otherwise, the |mdp| should be 60 // |mdp| will be issues on the given thread. Otherwise, the |mdp| should be
61 // able to handle calls on arbitrary threads. 61 // able to handle calls on arbitrary threads.
62 void RegisterDumpProvider( 62 void RegisterDumpProvider(
63 MemoryDumpProvider* mdp, 63 MemoryDumpProvider* mdp,
64 const scoped_refptr<SingleThreadTaskRunner>& task_runner); 64 const scoped_refptr<SingleThreadTaskRunner>& task_runner);
65 void RegisterDumpProvider(MemoryDumpProvider* mdp); 65 void RegisterDumpProvider(MemoryDumpProvider* mdp);
66 void UnregisterDumpProvider(MemoryDumpProvider* mdp); 66 void UnregisterDumpProvider(MemoryDumpProvider* mdp);
67 67
68 // Requests a memory dump. The dump might happen or not depending on the 68 // Requests a memory dump. The dump might happen or not depending on the
69 // filters and categories specified when enabling tracing. 69 // filters and categories specified when enabling tracing.
70 // The |dump_args| is used to specify the dump's level of detail.
71 // The optional |callback| is executed asynchronously, on an arbitrary thread, 70 // The optional |callback| is executed asynchronously, on an arbitrary thread,
72 // to notify about the completion of the global dump (i.e. after all the 71 // to notify about the completion of the global dump (i.e. after all the
73 // processes have dumped) and its success (true iff all the dumps were 72 // processes have dumped) and its success (true iff all the dumps were
74 // successful). 73 // successful).
75 void RequestGlobalDump(MemoryDumpType dump_type, 74 void RequestGlobalDump(MemoryDumpType dump_type,
76 const MemoryDumpArgs& dump_args, 75 MemoryDumpLevelOfDetail level_of_detail,
77 const MemoryDumpCallback& callback); 76 const MemoryDumpCallback& callback);
78 77
79 // Same as above (still asynchronous), but without callback. 78 // Same as above (still asynchronous), but without callback.
80 void RequestGlobalDump(MemoryDumpType dump_type, 79 void RequestGlobalDump(MemoryDumpType dump_type,
81 const MemoryDumpArgs& dump_args); 80 MemoryDumpLevelOfDetail level_of_detail);
82 81
83 // TraceLog::EnabledStateObserver implementation. 82 // TraceLog::EnabledStateObserver implementation.
84 void OnTraceLogEnabled() override; 83 void OnTraceLogEnabled() override;
85 void OnTraceLogDisabled() override; 84 void OnTraceLogDisabled() override;
86 85
87 // Returns the MemoryDumpSessionState object, which is shared by all the 86 // Returns the MemoryDumpSessionState object, which is shared by all the
88 // ProcessMemoryDump and MemoryAllocatorDump instances through all the tracing 87 // ProcessMemoryDump and MemoryAllocatorDump instances through all the tracing
89 // session lifetime. 88 // session lifetime.
90 const scoped_refptr<MemoryDumpSessionState>& session_state() const { 89 const scoped_refptr<MemoryDumpSessionState>& session_state() const {
91 return session_state_; 90 return session_state_;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 251 }
253 252
254 private: 253 private:
255 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegate); 254 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegate);
256 }; 255 };
257 256
258 } // namespace trace_event 257 } // namespace trace_event
259 } // namespace base 258 } // namespace base
260 259
261 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ 260 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
OLDNEW
« no previous file with comments | « base/trace_event/memory_allocator_dump_unittest.cc ('k') | base/trace_event/memory_dump_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698