| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, TraceBufferVectorReportFull); | 319 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, TraceBufferVectorReportFull); |
| 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 // This allows TraceEventETWExport to call UpdateCategoryGroupEnabledFlags |
| 330 // whenever required (ie. when ETW keyword changes). |
| 331 friend class TraceEventETWExport; |
| 332 |
| 329 // MemoryDumpProvider implementation. | 333 // MemoryDumpProvider implementation. |
| 330 bool OnMemoryDump(const MemoryDumpArgs& args, | 334 bool OnMemoryDump(const MemoryDumpArgs& args, |
| 331 ProcessMemoryDump* pmd) override; | 335 ProcessMemoryDump* pmd) override; |
| 332 | 336 |
| 333 // Enable/disable each category group based on the current mode_, | 337 // Enable/disable each category group based on the current mode_, |
| 334 // category_filter_, event_callback_ and event_callback_category_filter_. | 338 // category_filter_, event_callback_ and event_callback_category_filter_. |
| 335 // Enable the category group in the enabled mode if category_filter_ matches | 339 // Enable the category group in the enabled mode if category_filter_ matches |
| 336 // the category group, or event_callback_ is not null and | 340 // the category group, or event_callback_ is not null and |
| 337 // event_callback_category_filter_ matches the category group. | 341 // event_callback_category_filter_ matches the category group. |
| 338 void UpdateCategoryGroupEnabledFlags(); | 342 void UpdateCategoryGroupEnabledFlags(); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 subtle::AtomicWord generation_; | 482 subtle::AtomicWord generation_; |
| 479 bool use_worker_thread_; | 483 bool use_worker_thread_; |
| 480 | 484 |
| 481 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 485 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
| 482 }; | 486 }; |
| 483 | 487 |
| 484 } // namespace trace_event | 488 } // namespace trace_event |
| 485 } // namespace base | 489 } // namespace base |
| 486 | 490 |
| 487 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ | 491 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ |
| OLD | NEW |