| 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 const char* name, | 571 const char* name, |
| 572 unsigned long long id, | 572 unsigned long long id, |
| 573 int thread_id, | 573 int thread_id, |
| 574 const TimeTicks& timestamp, | 574 const TimeTicks& timestamp, |
| 575 int num_args, | 575 int num_args, |
| 576 const char** arg_names, | 576 const char** arg_names, |
| 577 const unsigned char* arg_types, | 577 const unsigned char* arg_types, |
| 578 const unsigned long long* arg_values, | 578 const unsigned long long* arg_values, |
| 579 const scoped_refptr<ConvertableToTraceFormat>* convertable_values, | 579 const scoped_refptr<ConvertableToTraceFormat>* convertable_values, |
| 580 unsigned char flags); | 580 unsigned char flags); |
| 581 TraceEventHandle AddTraceEventWithThreadIdAndTimestamp( |
| 582 char phase, |
| 583 const unsigned char* category_group_enabled, |
| 584 const char* name, |
| 585 unsigned long long id, |
| 586 int thread_id, |
| 587 const TimeTicks& timestamp, |
| 588 const TimeTicks& thread_time, |
| 589 int num_args, |
| 590 const char** arg_names, |
| 591 const unsigned char* arg_types, |
| 592 const unsigned long long* arg_values, |
| 593 const scoped_refptr<ConvertableToTraceFormat>* convertable_values, |
| 594 unsigned char flags); |
| 581 static void AddTraceEventEtw(char phase, | 595 static void AddTraceEventEtw(char phase, |
| 582 const char* category_group, | 596 const char* category_group, |
| 583 const void* id, | 597 const void* id, |
| 584 const char* extra); | 598 const char* extra); |
| 585 static void AddTraceEventEtw(char phase, | 599 static void AddTraceEventEtw(char phase, |
| 586 const char* category_group, | 600 const char* category_group, |
| 587 const void* id, | 601 const void* id, |
| 588 const std::string& extra); | 602 const std::string& extra); |
| 589 | 603 |
| 590 void UpdateTraceEventDuration(const unsigned char* category_group_enabled, | 604 void UpdateTraceEventDuration(const unsigned char* category_group_enabled, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 } | 706 } |
| 693 | 707 |
| 694 TraceBuffer* trace_buffer() const { return logged_events_.get(); } | 708 TraceBuffer* trace_buffer() const { return logged_events_.get(); } |
| 695 TraceBuffer* CreateTraceBuffer(); | 709 TraceBuffer* CreateTraceBuffer(); |
| 696 TraceBuffer* CreateTraceBufferVectorOfSize(size_t max_chunks); | 710 TraceBuffer* CreateTraceBufferVectorOfSize(size_t max_chunks); |
| 697 | 711 |
| 698 std::string EventToConsoleMessage(unsigned char phase, | 712 std::string EventToConsoleMessage(unsigned char phase, |
| 699 const TimeTicks& timestamp, | 713 const TimeTicks& timestamp, |
| 700 TraceEvent* trace_event); | 714 TraceEvent* trace_event); |
| 701 | 715 |
| 716 TraceEventHandle AddTraceEventInternal( |
| 717 char phase, |
| 718 const unsigned char* category_group_enabled, |
| 719 const char* name, |
| 720 unsigned long long id, |
| 721 int thread_id, |
| 722 const TimeTicks& timestamp, |
| 723 const TimeTicks& thread_time, |
| 724 int num_args, |
| 725 const char** arg_names, |
| 726 const unsigned char* arg_types, |
| 727 const unsigned long long* arg_values, |
| 728 const scoped_refptr<ConvertableToTraceFormat>* convertable_values, |
| 729 unsigned char flags); |
| 730 |
| 702 TraceEvent* AddEventToThreadSharedChunkWhileLocked(TraceEventHandle* handle, | 731 TraceEvent* AddEventToThreadSharedChunkWhileLocked(TraceEventHandle* handle, |
| 703 bool check_buffer_is_full); | 732 bool check_buffer_is_full); |
| 704 void CheckIfBufferIsFullWhileLocked(); | 733 void CheckIfBufferIsFullWhileLocked(); |
| 705 void SetDisabledWhileLocked(); | 734 void SetDisabledWhileLocked(); |
| 706 | 735 |
| 707 TraceEvent* GetEventByHandleInternal(TraceEventHandle handle, | 736 TraceEvent* GetEventByHandleInternal(TraceEventHandle handle, |
| 708 OptionalAutoLock* lock); | 737 OptionalAutoLock* lock); |
| 709 | 738 |
| 710 // |generation| is used in the following callbacks to check if the callback | 739 // |generation| is used in the following callbacks to check if the callback |
| 711 // is called for the flush of the current |logged_events_|. | 740 // is called for the flush of the current |logged_events_|. |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 using base::trace_event::RECORD_AS_MUCH_AS_POSSIBLE; | 850 using base::trace_event::RECORD_AS_MUCH_AS_POSSIBLE; |
| 822 using base::trace_event::TraceEventHandle; | 851 using base::trace_event::TraceEventHandle; |
| 823 using base::trace_event::TraceLog; | 852 using base::trace_event::TraceLog; |
| 824 using base::trace_event::TraceLogStatus; | 853 using base::trace_event::TraceLogStatus; |
| 825 using base::trace_event::TraceOptions; | 854 using base::trace_event::TraceOptions; |
| 826 using base::trace_event::TraceResultBuffer; | 855 using base::trace_event::TraceResultBuffer; |
| 827 } // namespace debug | 856 } // namespace debug |
| 828 } // namespace base | 857 } // namespace base |
| 829 | 858 |
| 830 #endif // BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ | 859 #endif // BASE_TRACE_EVENT_TRACE_EVENT_IMPL_H_ |
| OLD | NEW |