| 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_TRACE_LOG_H_ | 5 #ifndef BASE_TRACE_EVENT_TRACE_LOG_H_ |
| 6 #define BASE_TRACE_EVENT_TRACE_LOG_H_ | 6 #define BASE_TRACE_EVENT_TRACE_LOG_H_ |
| 7 | 7 |
| 8 #include "base/trace_event/memory_dump_provider.h" | 8 #include "base/trace_event/memory_dump_provider.h" |
| 9 #include "base/trace_event/trace_config.h" | 9 #include "base/trace_event/trace_config.h" |
| 10 #include "base/trace_event/trace_event_impl.h" | 10 #include "base/trace_event/trace_event_impl.h" |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, | 320 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, |
| 321 ConvertTraceConfigToInternalOptions); | 321 ConvertTraceConfigToInternalOptions); |
| 322 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, | 322 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, |
| 323 TraceRecordAsMuchAsPossibleMode); | 323 TraceRecordAsMuchAsPossibleMode); |
| 324 | 324 |
| 325 // This allows constructor and destructor to be private and usable only | 325 // This allows constructor and destructor to be private and usable only |
| 326 // by the Singleton class. | 326 // by the Singleton class. |
| 327 friend struct DefaultSingletonTraits<TraceLog>; | 327 friend struct DefaultSingletonTraits<TraceLog>; |
| 328 | 328 |
| 329 // MemoryDumpProvider implementation. | 329 // MemoryDumpProvider implementation. |
| 330 bool OnMemoryDump(ProcessMemoryDump* pmd) override; | 330 bool OnMemoryDump(const MemoryDumpArgs& args, |
| 331 ProcessMemoryDump* pmd) override; |
| 331 | 332 |
| 332 // Enable/disable each category group based on the current mode_, | 333 // Enable/disable each category group based on the current mode_, |
| 333 // category_filter_, event_callback_ and event_callback_category_filter_. | 334 // category_filter_, event_callback_ and event_callback_category_filter_. |
| 334 // Enable the category group in the enabled mode if category_filter_ matches | 335 // Enable the category group in the enabled mode if category_filter_ matches |
| 335 // the category group, or event_callback_ is not null and | 336 // the category group, or event_callback_ is not null and |
| 336 // event_callback_category_filter_ matches the category group. | 337 // event_callback_category_filter_ matches the category group. |
| 337 void UpdateCategoryGroupEnabledFlags(); | 338 void UpdateCategoryGroupEnabledFlags(); |
| 338 void UpdateCategoryGroupEnabledFlag(size_t category_index); | 339 void UpdateCategoryGroupEnabledFlag(size_t category_index); |
| 339 | 340 |
| 340 // Configure synthetic delays based on the values set in the current | 341 // Configure synthetic delays based on the values set in the current |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 subtle::AtomicWord generation_; | 478 subtle::AtomicWord generation_; |
| 478 bool use_worker_thread_; | 479 bool use_worker_thread_; |
| 479 | 480 |
| 480 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 481 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
| 481 }; | 482 }; |
| 482 | 483 |
| 483 } // namespace trace_event | 484 } // namespace trace_event |
| 484 } // namespace base | 485 } // namespace base |
| 485 | 486 |
| 486 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ | 487 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ |
| OLD | NEW |