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

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

Issue 1213523003: [ETW Export] Add polling for ETW keyword. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 5
6 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ 6 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_
7 #define BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ 7 #define BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_
8 8
9 #include <stack> 9 #include <stack>
10 #include <string> 10 #include <string>
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 TraceBufferVectorReportFull); 545 TraceBufferVectorReportFull);
546 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, 546 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture,
547 ConvertTraceConfigToInternalOptions); 547 ConvertTraceConfigToInternalOptions);
548 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, 548 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture,
549 TraceRecordAsMuchAsPossibleMode); 549 TraceRecordAsMuchAsPossibleMode);
550 550
551 // This allows constructor and destructor to be private and usable only 551 // This allows constructor and destructor to be private and usable only
552 // by the Singleton class. 552 // by the Singleton class.
553 friend struct DefaultSingletonTraits<TraceLog>; 553 friend struct DefaultSingletonTraits<TraceLog>;
554 554
555 // This allows TraceEventETWExport to call UpdateCategoryGroupEnabledFlags
556 // whenever required (ie. when ETW keyword changes).
557 friend class TraceEventETWExport;
558
555 // MemoryDumpProvider implementation. 559 // MemoryDumpProvider implementation.
556 bool OnMemoryDump(ProcessMemoryDump* pmd) override; 560 bool OnMemoryDump(ProcessMemoryDump* pmd) override;
557 561
558 // Enable/disable each category group based on the current mode_, 562 // Enable/disable each category group based on the current mode_,
559 // category_filter_, event_callback_ and event_callback_category_filter_. 563 // category_filter_, event_callback_ and event_callback_category_filter_.
560 // Enable the category group in the enabled mode if category_filter_ matches 564 // Enable the category group in the enabled mode if category_filter_ matches
561 // the category group, or event_callback_ is not null and 565 // the category group, or event_callback_ is not null and
562 // event_callback_category_filter_ matches the category group. 566 // event_callback_category_filter_ matches the category group.
563 void UpdateCategoryGroupEnabledFlags(); 567 void UpdateCategoryGroupEnabledFlags();
564 void UpdateCategoryGroupEnabledFlag(size_t category_index); 568 void UpdateCategoryGroupEnabledFlag(size_t category_index);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 subtle::AtomicWord generation_; 710 subtle::AtomicWord generation_;
707 bool use_worker_thread_; 711 bool use_worker_thread_;
708 712
709 DISALLOW_COPY_AND_ASSIGN(TraceLog); 713 DISALLOW_COPY_AND_ASSIGN(TraceLog);
710 }; 714 };
711 715
712 } // namespace trace_event 716 } // namespace trace_event
713 } // namespace base 717 } // namespace base
714 718
715 #endif // BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ 719 #endif // BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698