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

Side by Side Diff: base/trace_event/trace_event_etw_export_win.cc

Issue 1386193002: Stop using the TRACE_EVENT_*_ETW macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self-review (fix a comment) Created 5 years, 2 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 | « no previous file | content/browser/browser_main.cc » ('j') | content/renderer/render_thread_impl.cc » ('J')
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 #include "base/trace_event/trace_event_etw_export_win.h" 5 #include "base/trace_event/trace_event_etw_export_win.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "base/strings/string_tokenizer.h" 10 #include "base/strings/string_tokenizer.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 "cc", // 0x8 78 "cc", // 0x8
79 "evdev", // 0x10 79 "evdev", // 0x10
80 "gpu", // 0x20 80 "gpu", // 0x20
81 "input", // 0x40 81 "input", // 0x40
82 "netlog", // 0x80 82 "netlog", // 0x80
83 "renderer.scheduler", // 0x100 83 "renderer.scheduler", // 0x100
84 "toplevel", // 0x200 84 "toplevel", // 0x200
85 "v8", // 0x400 85 "v8", // 0x400
86 "disabled-by-default-cc.debug", // 0x800 86 "disabled-by-default-cc.debug", // 0x800
87 "disabled-by-default-cc.debug.picture", // 0x1000 87 "disabled-by-default-cc.debug.picture", // 0x1000
88 "disabled-by-default-toplevel.flow"}; // 0x2000 88 "disabled-by-default-toplevel.flow", // 0x2000
89 "startup"}; // 0x4000
89 const char kOtherEventsGroupName[] = "__OTHER_EVENTS"; // 0x2000000000000000 90 const char kOtherEventsGroupName[] = "__OTHER_EVENTS"; // 0x2000000000000000
90 const char kDisabledOtherEventsGroupName[] = 91 const char kDisabledOtherEventsGroupName[] =
91 "__DISABLED_OTHER_EVENTS"; // 0x4000000000000000 92 "__DISABLED_OTHER_EVENTS"; // 0x4000000000000000
92 const uint64 kOtherEventsKeywordBit = 1ULL << 61; 93 const uint64 kOtherEventsKeywordBit = 1ULL << 61;
93 const uint64 kDisabledOtherEventsKeywordBit = 1ULL << 62; 94 const uint64 kDisabledOtherEventsKeywordBit = 1ULL << 62;
94 const size_t kNumberOfCategories = ARRAYSIZE(kFilteredEventGroupNames) + 2U; 95 const size_t kNumberOfCategories = ARRAYSIZE(kFilteredEventGroupNames) + 2U;
95 96
96 } // namespace 97 } // namespace
97 98
98 // Redirector function for EventRegister. Called by macros in 99 // Redirector function for EventRegister. Called by macros in
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 // static 435 // static
435 void TraceEventETWExport::UpdateETWKeyword() { 436 void TraceEventETWExport::UpdateETWKeyword() {
436 if (!IsETWExportEnabled()) 437 if (!IsETWExportEnabled())
437 return; 438 return;
438 auto* instance = GetInstance(); 439 auto* instance = GetInstance();
439 DCHECK(instance); 440 DCHECK(instance);
440 instance->UpdateEnabledCategories(); 441 instance->UpdateEnabledCategories();
441 } 442 }
442 } // namespace trace_event 443 } // namespace trace_event
443 } // namespace base 444 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_main.cc » ('j') | content/renderer/render_thread_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698