| 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 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_H_ | 5 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_H_ |
| 6 #define BASE_TRACE_EVENT_TRACE_EVENT_H_ | 6 #define BASE_TRACE_EVENT_TRACE_EVENT_H_ |
| 7 | 7 |
| 8 // This header file defines implementation details of how the trace macros in | 8 // This header file defines implementation details of how the trace macros in |
| 9 // trace_event_common.h collect and store trace events. Anything not | 9 // trace_event_common.h collect and store trace events. Anything not |
| 10 // implementation-specific should go in trace_macros_common.h instead of here. | 10 // implementation-specific should go in trace_macros_common.h instead of here. |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/atomicops.h" | 14 #include "base/atomicops.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "base/trace_event/common/trace_event_common.h" | 16 #include "base/trace_event/common/trace_event_common.h" |
| 17 #include "base/trace_event/trace_event_memory.h" | |
| 18 #include "base/trace_event/trace_event_system_stats_monitor.h" | 17 #include "base/trace_event/trace_event_system_stats_monitor.h" |
| 19 #include "base/trace_event/trace_log.h" | 18 #include "base/trace_event/trace_log.h" |
| 20 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 21 | 20 |
| 22 // By default, const char* argument values are assumed to have long-lived scope | 21 // By default, const char* argument values are assumed to have long-lived scope |
| 23 // and will not be copied. Use this macro to force a const char* to be copied. | 22 // and will not be copied. Use this macro to force a const char* to be copied. |
| 24 #define TRACE_STR_COPY(str) \ | 23 #define TRACE_STR_COPY(str) \ |
| 25 trace_event_internal::TraceStringWithCopy(str) | 24 trace_event_internal::TraceStringWithCopy(str) |
| 26 | 25 |
| 27 // By default, uint64 ID argument values are not mangled with the Process ID in | 26 // By default, uint64 ID argument values are not mangled with the Process ID in |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 const char* name_; | 908 const char* name_; |
| 910 IDType id_; | 909 IDType id_; |
| 911 | 910 |
| 912 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); | 911 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); |
| 913 }; | 912 }; |
| 914 | 913 |
| 915 } // namespace trace_event | 914 } // namespace trace_event |
| 916 } // namespace base | 915 } // namespace base |
| 917 | 916 |
| 918 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ | 917 #endif // BASE_TRACE_EVENT_TRACE_EVENT_H_ |
| OLD | NEW |