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_DEBUG_TRACE_EVENT_IMPL_H_ | 6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
250 void Flush(const OutputCallback& cb); | 250 void Flush(const OutputCallback& cb); |
251 | 251 |
252 // Called by TRACE_EVENT* macros, don't call this directly. | 252 // Called by TRACE_EVENT* macros, don't call this directly. |
253 static const unsigned char* GetCategoryEnabled(const char* name); | 253 static const unsigned char* GetCategoryEnabled(const char* name); |
254 static const char* GetCategoryName(const unsigned char* category_enabled); | 254 static const char* GetCategoryName(const unsigned char* category_enabled); |
255 | 255 |
256 // Called by TRACE_EVENT* macros, don't call this directly. | 256 // Called by TRACE_EVENT* macros, don't call this directly. |
257 // If |copy| is set, |name|, |arg_name1| and |arg_name2| will be deep copied | 257 // If |copy| is set, |name|, |arg_name1| and |arg_name2| will be deep copied |
258 // into the event; see "Memory scoping note" and TRACE_EVENT_COPY_XXX above. | 258 // into the event; see "Memory scoping note" and TRACE_EVENT_COPY_XXX above. |
259 void AddTraceEvent(char phase, | 259 void AddTraceEvent(char phase, |
260 const unsigned char* category_enabled, | 260 const unsigned char* category_enabled, |
261 const char* name, | 261 const char* name, |
262 unsigned long long id, | 262 unsigned long long id, |
263 int num_args, | 263 int num_args, |
264 const char** arg_names, | 264 const char** arg_names, |
265 const unsigned char* arg_types, | 265 const unsigned char* arg_types, |
266 const unsigned long long* arg_values, | 266 const unsigned long long* arg_values, |
267 unsigned char flags); | 267 unsigned char flags); |
268 void AddTraceEventWithThreadIdAndTimestamp(char phase, | |
jar (doing other things)
2013/02/15 02:01:39
nit: move "char phase," to next line, so that all
dsinclair
2013/02/15 15:14:10
Done.
| |
269 const unsigned char* category_enabled, | |
270 const char* name, | |
271 unsigned long long id, | |
272 int thread_id, | |
273 const TimeTicks& timestamp, | |
274 int num_args, | |
275 const char** arg_names, | |
276 const unsigned char* arg_types, | |
277 const unsigned long long* arg_values, | |
278 unsigned char flags); | |
268 static void AddTraceEventEtw(char phase, | 279 static void AddTraceEventEtw(char phase, |
269 const char* name, | 280 const char* name, |
270 const void* id, | 281 const void* id, |
271 const char* extra); | 282 const char* extra); |
272 static void AddTraceEventEtw(char phase, | 283 static void AddTraceEventEtw(char phase, |
273 const char* name, | 284 const char* name, |
274 const void* id, | 285 const void* id, |
275 const std::string& extra); | 286 const std::string& extra); |
276 | 287 |
277 // For every matching event, a notification will be fired. NOTE: the | 288 // For every matching event, a notification will be fired. NOTE: the |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
387 const unsigned char* watch_category_; | 398 const unsigned char* watch_category_; |
388 std::string watch_event_name_; | 399 std::string watch_event_name_; |
389 | 400 |
390 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 401 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
391 }; | 402 }; |
392 | 403 |
393 } // namespace debug | 404 } // namespace debug |
394 } // namespace base | 405 } // namespace base |
395 | 406 |
396 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 407 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
OLD | NEW |