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

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: Fix nit. 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
« no previous file with comments | « base/trace_event/trace_event_etw_export_win.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // that should be reported. 300 // that should be reported.
301 void SetTimeOffset(TimeDelta offset); 301 void SetTimeOffset(TimeDelta offset);
302 302
303 size_t GetObserverCountForTest() const; 303 size_t GetObserverCountForTest() const;
304 304
305 // Call this method if the current thread may block the message loop to 305 // Call this method if the current thread may block the message loop to
306 // prevent the thread from using the thread-local buffer because the thread 306 // prevent the thread from using the thread-local buffer because the thread
307 // may not handle the flush request in time causing lost of unflushed events. 307 // may not handle the flush request in time causing lost of unflushed events.
308 void SetCurrentThreadBlocksMessageLoop(); 308 void SetCurrentThreadBlocksMessageLoop();
309 309
310 #if defined(OS_WIN)
311 // This function is called by the ETW exporting module whenever the ETW
312 // keyword (flags) changes. This keyword indicates which categories should be
313 // exported, so whenever it changes, we adjust accordingly.
314 void UpdateETWCategoryGroupEnabledFlags();
315 #endif
316
310 private: 317 private:
311 typedef unsigned int InternalTraceOptions; 318 typedef unsigned int InternalTraceOptions;
312 319
313 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, 320 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture,
314 TraceBufferRingBufferGetReturnChunk); 321 TraceBufferRingBufferGetReturnChunk);
315 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, 322 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture,
316 TraceBufferRingBufferHalfIteration); 323 TraceBufferRingBufferHalfIteration);
317 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, 324 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture,
318 TraceBufferRingBufferFullIteration); 325 TraceBufferRingBufferFullIteration);
319 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, TraceBufferVectorReportFull); 326 FRIEND_TEST_ALL_PREFIXES(TraceEventTestFixture, TraceBufferVectorReportFull);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 subtle::AtomicWord generation_; 485 subtle::AtomicWord generation_;
479 bool use_worker_thread_; 486 bool use_worker_thread_;
480 487
481 DISALLOW_COPY_AND_ASSIGN(TraceLog); 488 DISALLOW_COPY_AND_ASSIGN(TraceLog);
482 }; 489 };
483 490
484 } // namespace trace_event 491 } // namespace trace_event
485 } // namespace base 492 } // namespace base
486 493
487 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ 494 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_
OLDNEW
« no previous file with comments | « base/trace_event/trace_event_etw_export_win.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698