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

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

Issue 1923533004: Tracing pre-filtering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // The pointer returned from GetCategoryGroupEnabledInternal() points to a 53 // The pointer returned from GetCategoryGroupEnabledInternal() points to a
54 // value with zero or more of the following bits. Used in this class only. 54 // value with zero or more of the following bits. Used in this class only.
55 // The TRACE_EVENT macros should only use the value as a bool. 55 // The TRACE_EVENT macros should only use the value as a bool.
56 // These values must be in sync with macro values in TraceEvent.h in Blink. 56 // These values must be in sync with macro values in TraceEvent.h in Blink.
57 enum CategoryGroupEnabledFlags { 57 enum CategoryGroupEnabledFlags {
58 // Category group enabled for the recording mode. 58 // Category group enabled for the recording mode.
59 ENABLED_FOR_RECORDING = 1 << 0, 59 ENABLED_FOR_RECORDING = 1 << 0,
60 // Category group enabled by SetEventCallbackEnabled(). 60 // Category group enabled by SetEventCallbackEnabled().
61 ENABLED_FOR_EVENT_CALLBACK = 1 << 2, 61 ENABLED_FOR_EVENT_CALLBACK = 1 << 2,
62 // Category group enabled to export events to ETW. 62 // Category group enabled to export events to ETW.
63 ENABLED_FOR_ETW_EXPORT = 1 << 3 63 ENABLED_FOR_ETW_EXPORT = 1 << 3,
64 // TODO description
65 ENABLED_FOR_FILTERING = 1 << 4
64 }; 66 };
65 67
66 static TraceLog* GetInstance(); 68 static TraceLog* GetInstance();
67 69
68 // Get set of known category groups. This can change as new code paths are 70 // Get set of known category groups. This can change as new code paths are
69 // reached. The known category groups are inserted into |category_groups|. 71 // reached. The known category groups are inserted into |category_groups|.
70 void GetKnownCategoryGroups(std::vector<std::string>* category_groups); 72 void GetKnownCategoryGroups(std::vector<std::string>* category_groups);
71 73
72 // Retrieves a copy (for thread-safety) of the current TraceConfig. 74 // Retrieves a copy (for thread-safety) of the current TraceConfig.
73 TraceConfig GetCurrentTraceConfig() const; 75 TraceConfig GetCurrentTraceConfig() const;
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 subtle::AtomicWord generation_; 499 subtle::AtomicWord generation_;
498 bool use_worker_thread_; 500 bool use_worker_thread_;
499 501
500 DISALLOW_COPY_AND_ASSIGN(TraceLog); 502 DISALLOW_COPY_AND_ASSIGN(TraceLog);
501 }; 503 };
502 504
503 } // namespace trace_event 505 } // namespace trace_event
504 } // namespace base 506 } // namespace base
505 507
506 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ 508 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698