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 <stack> | 9 #include <stack> |
10 #include <string> | 10 #include <string> |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 // TRACE_EVENT0("renderer,webkit", "WebViewImpl::HandleInputEvent") | 384 // TRACE_EVENT0("renderer,webkit", "WebViewImpl::HandleInputEvent") |
385 static const unsigned char* GetCategoryGroupEnabled(const char* name); | 385 static const unsigned char* GetCategoryGroupEnabled(const char* name); |
386 static const char* GetCategoryGroupName( | 386 static const char* GetCategoryGroupName( |
387 const unsigned char* category_group_enabled); | 387 const unsigned char* category_group_enabled); |
388 | 388 |
389 // Called by TRACE_EVENT* macros, don't call this directly. | 389 // Called by TRACE_EVENT* macros, don't call this directly. |
390 // If |copy| is set, |name|, |arg_name1| and |arg_name2| will be deep copied | 390 // If |copy| is set, |name|, |arg_name1| and |arg_name2| will be deep copied |
391 // into the event; see "Memory scoping note" and TRACE_EVENT_COPY_XXX above. | 391 // into the event; see "Memory scoping note" and TRACE_EVENT_COPY_XXX above. |
392 void AddTraceEvent(char phase, | 392 void AddTraceEvent(char phase, |
393 const unsigned char* category_group_enabled, | 393 const unsigned char* category_group_enabled, |
394 const char* category_group, | 394 const char* name, |
395 unsigned long long id, | 395 unsigned long long id, |
396 int num_args, | 396 int num_args, |
397 const char** arg_names, | 397 const char** arg_names, |
398 const unsigned char* arg_types, | 398 const unsigned char* arg_types, |
399 const unsigned long long* arg_values, | 399 const unsigned long long* arg_values, |
400 scoped_ptr<ConvertableToTraceFormat> convertable_values[], | 400 scoped_ptr<ConvertableToTraceFormat> convertable_values[], |
401 unsigned char flags); | 401 unsigned char flags); |
402 void AddTraceEventWithThreadIdAndTimestamp( | 402 void AddTraceEventWithThreadIdAndTimestamp( |
403 char phase, | 403 char phase, |
404 const unsigned char* category_group_enabled, | 404 const unsigned char* category_group_enabled, |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 | 562 |
563 CategoryFilter category_filter_; | 563 CategoryFilter category_filter_; |
564 | 564 |
565 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 565 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
566 }; | 566 }; |
567 | 567 |
568 } // namespace debug | 568 } // namespace debug |
569 } // namespace base | 569 } // namespace base |
570 | 570 |
571 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 571 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
OLD | NEW |