Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: base/trace_event/trace_event_impl.h

Issue 1258903003: Revert of [tracing] Fix, simplify and speed up accounting of TraceEvent memory overhead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/trace_event/trace_buffer.cc ('k') | base/trace_event/trace_event_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « base/trace_event/trace_buffer.cc ('k') | base/trace_event/trace_event_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698