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

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

Issue 1279353002: [ETW Export] Add polling for ETW keyword. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: brucedawson@ comments. Created 5 years, 4 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 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
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;
dsinclair 2015/08/11 19:33:14 This is kinda gross as it gives access to everythi
Georges Khalil 2015/08/12 17:24:25 I added an API in tracelog that allows us to set/c
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698