| 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( |
| 269 char phase, |
| 270 const unsigned char* category_enabled, |
| 271 const char* name, |
| 272 unsigned long long id, |
| 273 int thread_id, |
| 274 const TimeTicks& timestamp, |
| 275 int num_args, |
| 276 const char** arg_names, |
| 277 const unsigned char* arg_types, |
| 278 const unsigned long long* arg_values, |
| 279 unsigned char flags); |
| 268 static void AddTraceEventEtw(char phase, | 280 static void AddTraceEventEtw(char phase, |
| 269 const char* name, | 281 const char* name, |
| 270 const void* id, | 282 const void* id, |
| 271 const char* extra); | 283 const char* extra); |
| 272 static void AddTraceEventEtw(char phase, | 284 static void AddTraceEventEtw(char phase, |
| 273 const char* name, | 285 const char* name, |
| 274 const void* id, | 286 const void* id, |
| 275 const std::string& extra); | 287 const std::string& extra); |
| 276 | 288 |
| 277 // For every matching event, a notification will be fired. NOTE: the | 289 // 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_; | 399 const unsigned char* watch_category_; |
| 388 std::string watch_event_name_; | 400 std::string watch_event_name_; |
| 389 | 401 |
| 390 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 402 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
| 391 }; | 403 }; |
| 392 | 404 |
| 393 } // namespace debug | 405 } // namespace debug |
| 394 } // namespace base | 406 } // namespace base |
| 395 | 407 |
| 396 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 408 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
| OLD | NEW |