OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This header file defines the set of trace_event macros without specifying | 5 // This header file defines the set of trace_event macros without specifying |
6 // how the events actually get collected and stored. If you need to expose trace | 6 // how the events actually get collected and stored. If you need to expose trace |
7 // events to some other universe, you can copy-and-paste this file as well as | 7 // events to some other universe, you can copy-and-paste this file as well as |
8 // trace_event.h, modifying the macros contained there as necessary for the | 8 // trace_event.h, modifying the macros contained there as necessary for the |
9 // target platform. The end result is that multiple libraries can funnel events | 9 // target platform. The end result is that multiple libraries can funnel events |
10 // through to a shared trace event collector. | 10 // through to a shared trace event collector. |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // trace points would carry a significant performance cost of acquiring a lock | 186 // trace points would carry a significant performance cost of acquiring a lock |
187 // and resolving the category. | 187 // and resolving the category. |
188 | 188 |
189 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_H_ | 189 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_H_ |
190 #define BASE_TRACE_EVENT_TRACE_EVENT_H_ | 190 #define BASE_TRACE_EVENT_TRACE_EVENT_H_ |
191 | 191 |
192 #include <string> | 192 #include <string> |
193 | 193 |
194 #include "base/atomicops.h" | 194 #include "base/atomicops.h" |
195 #include "base/time/time.h" | 195 #include "base/time/time.h" |
| 196 #include "base/trace_event/trace_config.h" |
196 #include "base/trace_event/trace_event_impl.h" | 197 #include "base/trace_event/trace_event_impl.h" |
197 #include "base/trace_event/trace_event_memory.h" | 198 #include "base/trace_event/trace_event_memory.h" |
198 #include "base/trace_event/trace_event_system_stats_monitor.h" | 199 #include "base/trace_event/trace_event_system_stats_monitor.h" |
199 #include "build/build_config.h" | 200 #include "build/build_config.h" |
200 | 201 |
201 // By default, const char* argument values are assumed to have long-lived scope | 202 // By default, const char* argument values are assumed to have long-lived scope |
202 // and will not be copied. Use this macro to force a const char* to be copied. | 203 // and will not be copied. Use this macro to force a const char* to be copied. |
203 #define TRACE_STR_COPY(str) \ | 204 #define TRACE_STR_COPY(str) \ |
204 trace_event_internal::TraceStringWithCopy(str) | 205 trace_event_internal::TraceStringWithCopy(str) |
205 | 206 |
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 const char* name_; | 1679 const char* name_; |
1679 IDType id_; | 1680 IDType id_; |
1680 | 1681 |
1681 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); | 1682 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); |
1682 }; | 1683 }; |
1683 | 1684 |
1684 } // namespace trace_event | 1685 } // namespace trace_event |
1685 } // namespace base | 1686 } // namespace base |
1686 | 1687 |
1687 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ | 1688 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ |
OLD | NEW |