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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |