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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller 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
« no previous file with comments | « base/timer/timer_unittest.cc ('k') | base/trace_event/trace_event_memory.h » ('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 <set> 8 #include <set>
9 9
10 #include "base/atomicops.h" 10 #include "base/atomicops.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 // Protects from concurrent accesses to the |dump_providers_*| and |delegate_| 212 // Protects from concurrent accesses to the |dump_providers_*| and |delegate_|
213 // to guard against disabling logging while dumping on another thread. 213 // to guard against disabling logging while dumping on another thread.
214 Lock lock_; 214 Lock lock_;
215 215
216 // Optimization to avoid attempting any memory dump (i.e. to not walk an empty 216 // Optimization to avoid attempting any memory dump (i.e. to not walk an empty
217 // dump_providers_enabled_ list) when tracing is not enabled. 217 // dump_providers_enabled_ list) when tracing is not enabled.
218 subtle::AtomicWord memory_tracing_enabled_; 218 subtle::AtomicWord memory_tracing_enabled_;
219 219
220 // For time-triggered periodic dumps. 220 // For time-triggered periodic dumps.
221 RepeatingTimer<MemoryDumpManager> periodic_dump_timer_; 221 RepeatingTimer periodic_dump_timer_;
222 222
223 // The unique id of the child process. This is created only for tracing and is 223 // The unique id of the child process. This is created only for tracing and is
224 // expected to be valid only when tracing is enabled. 224 // expected to be valid only when tracing is enabled.
225 uint64 tracing_process_id_; 225 uint64 tracing_process_id_;
226 226
227 // Skips the auto-registration of the core dumpers during Initialize(). 227 // Skips the auto-registration of the core dumpers during Initialize().
228 bool skip_core_dumpers_auto_registration_for_testing_; 228 bool skip_core_dumpers_auto_registration_for_testing_;
229 229
230 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManager); 230 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManager);
231 }; 231 };
(...skipping 19 matching lines...) Expand all
251 } 251 }
252 252
253 private: 253 private:
254 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegate); 254 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManagerDelegate);
255 }; 255 };
256 256
257 } // namespace trace_event 257 } // namespace trace_event
258 } // namespace base 258 } // namespace base
259 259
260 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ 260 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
OLDNEW
« no previous file with comments | « base/timer/timer_unittest.cc ('k') | base/trace_event/trace_event_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698