| 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 | 5 |
| 6 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ | 6 #ifndef BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ |
| 7 #define BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ | 7 #define BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ |
| 8 | 8 |
| 9 #include <stack> | 9 #include <stack> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 #endif | 148 #endif |
| 149 | 149 |
| 150 private: | 150 private: |
| 151 // Note: these are ordered by size (largest first) for optimal packing. | 151 // Note: these are ordered by size (largest first) for optimal packing. |
| 152 TraceTicks timestamp_; | 152 TraceTicks timestamp_; |
| 153 ThreadTicks thread_timestamp_; | 153 ThreadTicks thread_timestamp_; |
| 154 TimeDelta duration_; | 154 TimeDelta duration_; |
| 155 TimeDelta thread_duration_; | 155 TimeDelta thread_duration_; |
| 156 // id_ can be used to store phase-specific data. | 156 // id_ can be used to store phase-specific data. |
| 157 unsigned long long id_; | 157 unsigned long long id_; |
| 158 scoped_ptr<TraceEventMemoryOverhead> cached_memory_overhead_estimate_; |
| 158 // context_id_ is used to store context information. | 159 // context_id_ is used to store context information. |
| 159 unsigned long long context_id_; | 160 unsigned long long context_id_; |
| 160 TraceValue arg_values_[kTraceMaxNumArgs]; | 161 TraceValue arg_values_[kTraceMaxNumArgs]; |
| 161 const char* arg_names_[kTraceMaxNumArgs]; | 162 const char* arg_names_[kTraceMaxNumArgs]; |
| 162 scoped_refptr<ConvertableToTraceFormat> convertable_values_[kTraceMaxNumArgs]; | 163 scoped_refptr<ConvertableToTraceFormat> convertable_values_[kTraceMaxNumArgs]; |
| 163 const unsigned char* category_group_enabled_; | 164 const unsigned char* category_group_enabled_; |
| 164 const char* name_; | 165 const char* name_; |
| 165 scoped_refptr<base::RefCountedString> parameter_copy_storage_; | 166 scoped_refptr<base::RefCountedString> parameter_copy_storage_; |
| 166 int thread_id_; | 167 int thread_id_; |
| 167 char phase_; | 168 char phase_; |
| 168 unsigned int flags_; | 169 unsigned int flags_; |
| 169 unsigned long long bind_id_; | 170 unsigned long long bind_id_; |
| 170 unsigned char arg_types_[kTraceMaxNumArgs]; | 171 unsigned char arg_types_[kTraceMaxNumArgs]; |
| 171 | 172 |
| 172 DISALLOW_COPY_AND_ASSIGN(TraceEvent); | 173 DISALLOW_COPY_AND_ASSIGN(TraceEvent); |
| 173 }; | 174 }; |
| 174 | 175 |
| 175 } // namespace trace_event | 176 } // namespace trace_event |
| 176 } // namespace base | 177 } // namespace base |
| 177 | 178 |
| 178 #endif // BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ | 179 #endif // BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ |
| OLD | NEW |