| 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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 static const InternalTraceOptions kInternalEchoToConsole; | 738 static const InternalTraceOptions kInternalEchoToConsole; |
| 739 static const InternalTraceOptions kInternalEnableSampling; | 739 static const InternalTraceOptions kInternalEnableSampling; |
| 740 static const InternalTraceOptions kInternalRecordAsMuchAsPossible; | 740 static const InternalTraceOptions kInternalRecordAsMuchAsPossible; |
| 741 | 741 |
| 742 // This lock protects TraceLog member accesses (except for members protected | 742 // This lock protects TraceLog member accesses (except for members protected |
| 743 // by thread_info_lock_) from arbitrary threads. | 743 // by thread_info_lock_) from arbitrary threads. |
| 744 mutable Lock lock_; | 744 mutable Lock lock_; |
| 745 // This lock protects accesses to thread_names_, thread_event_start_times_ | 745 // This lock protects accesses to thread_names_, thread_event_start_times_ |
| 746 // and thread_colors_. | 746 // and thread_colors_. |
| 747 Lock thread_info_lock_; | 747 Lock thread_info_lock_; |
| 748 int locked_line_; | |
| 749 Mode mode_; | 748 Mode mode_; |
| 750 int num_traces_recorded_; | 749 int num_traces_recorded_; |
| 751 scoped_ptr<TraceBuffer> logged_events_; | 750 scoped_ptr<TraceBuffer> logged_events_; |
| 752 subtle::AtomicWord /* EventCallback */ event_callback_; | 751 subtle::AtomicWord /* EventCallback */ event_callback_; |
| 753 bool dispatching_to_observer_list_; | 752 bool dispatching_to_observer_list_; |
| 754 std::vector<EnabledStateObserver*> enabled_state_observer_list_; | 753 std::vector<EnabledStateObserver*> enabled_state_observer_list_; |
| 755 | 754 |
| 756 std::string process_name_; | 755 std::string process_name_; |
| 757 base::hash_map<int, std::string> process_labels_; | 756 base::hash_map<int, std::string> process_labels_; |
| 758 int process_sort_index_; | 757 int process_sort_index_; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 scoped_refptr<MessageLoopProxy> flush_message_loop_proxy_; | 804 scoped_refptr<MessageLoopProxy> flush_message_loop_proxy_; |
| 806 subtle::AtomicWord generation_; | 805 subtle::AtomicWord generation_; |
| 807 | 806 |
| 808 DISALLOW_COPY_AND_ASSIGN(TraceLog); | 807 DISALLOW_COPY_AND_ASSIGN(TraceLog); |
| 809 }; | 808 }; |
| 810 | 809 |
| 811 } // namespace debug | 810 } // namespace debug |
| 812 } // namespace base | 811 } // namespace base |
| 813 | 812 |
| 814 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ | 813 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ |
| OLD | NEW |