| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CATEGORY_H_ | 5 #ifndef BASE_TRACE_EVENT_TRACE_CATEGORY_H_ |
| 6 #define BASE_TRACE_EVENT_TRACE_CATEGORY_H_ | 6 #define BASE_TRACE_EVENT_TRACE_CATEGORY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // crbug.com/{660967,660828}. | 89 // crbug.com/{660967,660828}. |
| 90 | 90 |
| 91 // The enabled state. TRACE_EVENT* macros will capture events if any of the | 91 // The enabled state. TRACE_EVENT* macros will capture events if any of the |
| 92 // flags here are set. Since TRACE_EVENTx macros are used in a lot of | 92 // flags here are set. Since TRACE_EVENTx macros are used in a lot of |
| 93 // fast-paths, accesses to this field are non-barriered and racy by design. | 93 // fast-paths, accesses to this field are non-barriered and racy by design. |
| 94 // This field is mutated when starting/stopping tracing and we don't care | 94 // This field is mutated when starting/stopping tracing and we don't care |
| 95 // about missing some events. | 95 // about missing some events. |
| 96 uint8_t state_; | 96 uint8_t state_; |
| 97 | 97 |
| 98 // When ENABLED_FOR_FILTERING is set, this contains a bitmap to the | 98 // When ENABLED_FOR_FILTERING is set, this contains a bitmap to the |
| 99 // coressponding filter (see event_filters.h). | 99 // corresponding filter (see event_filters.h). |
| 100 uint32_t enabled_filters_; | 100 uint32_t enabled_filters_; |
| 101 | 101 |
| 102 // TraceCategory group names are long lived static strings. | 102 // TraceCategory group names are long lived static strings. |
| 103 const char* name_; | 103 const char* name_; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace trace_event | 106 } // namespace trace_event |
| 107 } // namespace base | 107 } // namespace base |
| 108 | 108 |
| 109 #endif // BASE_TRACE_EVENT_TRACE_CATEGORY_H_ | 109 #endif // BASE_TRACE_EVENT_TRACE_CATEGORY_H_ |
| OLD | NEW |