| 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_; | |
| 159 // context_id_ is used to store context information. | 158 // context_id_ is used to store context information. |
| 160 unsigned long long context_id_; | 159 unsigned long long context_id_; |
| 161 TraceValue arg_values_[kTraceMaxNumArgs]; | 160 TraceValue arg_values_[kTraceMaxNumArgs]; |
| 162 const char* arg_names_[kTraceMaxNumArgs]; | 161 const char* arg_names_[kTraceMaxNumArgs]; |
| 163 scoped_refptr<ConvertableToTraceFormat> convertable_values_[kTraceMaxNumArgs]; | 162 scoped_refptr<ConvertableToTraceFormat> convertable_values_[kTraceMaxNumArgs]; |
| 164 const unsigned char* category_group_enabled_; | 163 const unsigned char* category_group_enabled_; |
| 165 const char* name_; | 164 const char* name_; |
| 166 scoped_refptr<base::RefCountedString> parameter_copy_storage_; | 165 scoped_refptr<base::RefCountedString> parameter_copy_storage_; |
| 167 int thread_id_; | 166 int thread_id_; |
| 168 char phase_; | 167 char phase_; |
| 169 unsigned int flags_; | 168 unsigned int flags_; |
| 170 unsigned long long bind_id_; | 169 unsigned long long bind_id_; |
| 171 unsigned char arg_types_[kTraceMaxNumArgs]; | 170 unsigned char arg_types_[kTraceMaxNumArgs]; |
| 172 | 171 |
| 173 DISALLOW_COPY_AND_ASSIGN(TraceEvent); | 172 DISALLOW_COPY_AND_ASSIGN(TraceEvent); |
| 174 }; | 173 }; |
| 175 | 174 |
| 176 } // namespace trace_event | 175 } // namespace trace_event |
| 177 } // namespace base | 176 } // namespace base |
| 178 | 177 |
| 179 #endif // BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ | 178 #endif // BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ |
| OLD | NEW |