Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: content/browser/tracing/tracing_controller_impl.h

Issue 171143002: Implements Windows system tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tracing
Patch Set: fix android build Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_
6 #define CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ 6 #define CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void OnLocalMonitoringTraceDataCollected( 109 void OnLocalMonitoringTraceDataCollected(
110 const scoped_refptr<base::RefCountedString>& events_str_ptr, 110 const scoped_refptr<base::RefCountedString>& events_str_ptr,
111 bool has_more_events); 111 bool has_more_events);
112 112
113 void OnDisableRecordingAcked( 113 void OnDisableRecordingAcked(
114 TraceMessageFilter* trace_message_filter, 114 TraceMessageFilter* trace_message_filter,
115 const std::vector<std::string>& known_category_groups); 115 const std::vector<std::string>& known_category_groups);
116 void OnDisableRecordingComplete(); 116 void OnDisableRecordingComplete();
117 void OnResultFileClosed(); 117 void OnResultFileClosed();
118 118
119 #if defined(OS_CHROMEOS) 119 #if defined(OS_CHROMEOS) || defined(OS_WIN)
120 void OnEndSystemTracingAcked( 120 void OnEndSystemTracingAcked(
121 const scoped_refptr<base::RefCountedString>& events_str_ptr); 121 const scoped_refptr<base::RefCountedString>& events_str_ptr);
122 #endif 122 #endif
123 123
124 void OnCaptureMonitoringSnapshotAcked( 124 void OnCaptureMonitoringSnapshotAcked(
125 TraceMessageFilter* trace_message_filter); 125 TraceMessageFilter* trace_message_filter);
126 void OnMonitoringSnapshotFileClosed(); 126 void OnMonitoringSnapshotFileClosed();
127 127
128 void OnTraceBufferPercentFullReply( 128 void OnTraceBufferPercentFullReply(
129 TraceMessageFilter* trace_message_filter, 129 TraceMessageFilter* trace_message_filter,
(...skipping 24 matching lines...) Expand all
154 int pending_disable_recording_ack_count_; 154 int pending_disable_recording_ack_count_;
155 TraceMessageFilterSet pending_disable_recording_filters_; 155 TraceMessageFilterSet pending_disable_recording_filters_;
156 // Pending acks for CaptureMonitoringSnapshot. 156 // Pending acks for CaptureMonitoringSnapshot.
157 int pending_capture_monitoring_snapshot_ack_count_; 157 int pending_capture_monitoring_snapshot_ack_count_;
158 TraceMessageFilterSet pending_capture_monitoring_filters_; 158 TraceMessageFilterSet pending_capture_monitoring_filters_;
159 // Pending acks for GetTraceBufferPercentFull. 159 // Pending acks for GetTraceBufferPercentFull.
160 int pending_trace_buffer_percent_full_ack_count_; 160 int pending_trace_buffer_percent_full_ack_count_;
161 TraceMessageFilterSet pending_trace_buffer_percent_full_filters_; 161 TraceMessageFilterSet pending_trace_buffer_percent_full_filters_;
162 float maximum_trace_buffer_percent_full_; 162 float maximum_trace_buffer_percent_full_;
163 163
164 #if defined(OS_CHROMEOS) 164 #if defined(OS_CHROMEOS) || defined(OS_WIN)
165 bool is_system_tracing_; 165 bool is_system_tracing_;
166 #endif 166 #endif
167 bool is_recording_; 167 bool is_recording_;
168 bool is_monitoring_; 168 bool is_monitoring_;
169 TracingController::Options options_; 169 TracingController::Options options_;
170 170
171 GetCategoriesDoneCallback pending_get_categories_done_callback_; 171 GetCategoriesDoneCallback pending_get_categories_done_callback_;
172 TracingFileResultCallback pending_disable_recording_done_callback_; 172 TracingFileResultCallback pending_disable_recording_done_callback_;
173 TracingFileResultCallback pending_capture_monitoring_snapshot_done_callback_; 173 TracingFileResultCallback pending_capture_monitoring_snapshot_done_callback_;
174 GetTraceBufferPercentFullCallback pending_trace_buffer_percent_full_callback_; 174 GetTraceBufferPercentFullCallback pending_trace_buffer_percent_full_callback_;
175 175
176 std::string watch_category_name_; 176 std::string watch_category_name_;
177 std::string watch_event_name_; 177 std::string watch_event_name_;
178 WatchEventCallback watch_event_callback_; 178 WatchEventCallback watch_event_callback_;
179 179
180 std::set<std::string> known_category_groups_; 180 std::set<std::string> known_category_groups_;
181 std::set<TracingUI*> tracing_uis_; 181 std::set<TracingUI*> tracing_uis_;
182 scoped_ptr<ResultFile> result_file_; 182 scoped_ptr<ResultFile> result_file_;
183 scoped_ptr<ResultFile> monitoring_snapshot_file_; 183 scoped_ptr<ResultFile> monitoring_snapshot_file_;
184 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl); 184 DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl);
185 }; 185 };
186 186
187 } // namespace content 187 } // namespace content
188 188
189 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_ 189 #endif // CONTENT_BROWSER_TRACING_TRACING_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/tracing/etw_system_event_consumer_win.cc ('k') | content/browser/tracing/tracing_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698