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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |