| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 void GetDumpProvidersForPolling( | 288 void GetDumpProvidersForPolling( |
| 289 std::vector<scoped_refptr<MemoryDumpProviderInfo>>*); | 289 std::vector<scoped_refptr<MemoryDumpProviderInfo>>*); |
| 290 | 290 |
| 291 // An ordererd set of registered MemoryDumpProviderInfo(s), sorted by task | 291 // An ordererd set of registered MemoryDumpProviderInfo(s), sorted by task |
| 292 // runner affinity (MDPs belonging to the same task runners are adjacent). | 292 // runner affinity (MDPs belonging to the same task runners are adjacent). |
| 293 MemoryDumpProviderInfo::OrderedSet dump_providers_; | 293 MemoryDumpProviderInfo::OrderedSet dump_providers_; |
| 294 | 294 |
| 295 // Shared among all the PMDs to keep state scoped to the tracing session. | 295 // Shared among all the PMDs to keep state scoped to the tracing session. |
| 296 scoped_refptr<MemoryDumpSessionState> session_state_; | 296 scoped_refptr<MemoryDumpSessionState> session_state_; |
| 297 | 297 |
| 298 // The list of names of dump providers that are blacklisted from strict thread | |
| 299 // affinity check on unregistration. | |
| 300 std::unordered_set<StringPiece, StringPieceHash> | |
| 301 strict_thread_check_blacklist_; | |
| 302 | |
| 303 std::unique_ptr<MemoryTracingObserver> tracing_observer_; | 298 std::unique_ptr<MemoryTracingObserver> tracing_observer_; |
| 304 | 299 |
| 305 // Function provided by the embedder to handle global dump requests. | 300 // Function provided by the embedder to handle global dump requests. |
| 306 RequestGlobalDumpFunction request_dump_function_; | 301 RequestGlobalDumpFunction request_dump_function_; |
| 307 | 302 |
| 308 // True when current process coordinates the periodic dump triggering. | 303 // True when current process coordinates the periodic dump triggering. |
| 309 bool is_coordinator_; | 304 bool is_coordinator_; |
| 310 | 305 |
| 311 // Protects from concurrent accesses to the local state, eg: to guard against | 306 // Protects from concurrent accesses to the local state, eg: to guard against |
| 312 // disabling logging while dumping on another thread. | 307 // disabling logging while dumping on another thread. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 330 // Whether new memory dump providers should be told to enable heap profiling. | 325 // Whether new memory dump providers should be told to enable heap profiling. |
| 331 bool heap_profiling_enabled_; | 326 bool heap_profiling_enabled_; |
| 332 | 327 |
| 333 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManager); | 328 DISALLOW_COPY_AND_ASSIGN(MemoryDumpManager); |
| 334 }; | 329 }; |
| 335 | 330 |
| 336 } // namespace trace_event | 331 } // namespace trace_event |
| 337 } // namespace base | 332 } // namespace base |
| 338 | 333 |
| 339 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ | 334 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_ |
| OLD | NEW |