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

Side by Side Diff: content/public/browser/tracing_controller.h

Issue 83483007: Expose synthetic delays through the GPU benchmarking extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
11 #include "base/debug/trace_event_synthetic_delay.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 13
13 namespace base { 14 namespace base {
14 class FilePath; 15 class FilePath;
15 }; 16 };
16 17
17 namespace content { 18 namespace content {
18 19
19 class TracingController; 20 class TracingController;
20 21
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const base::FilePath& result_file_path, 140 const base::FilePath& result_file_path,
140 const TracingFileResultCallback& callback) = 0; 141 const TracingFileResultCallback& callback) = 0;
141 142
142 // Get the maximum across processes of trace buffer percent full state. 143 // Get the maximum across processes of trace buffer percent full state.
143 // When the TraceBufferPercentFull value is determined, the callback is 144 // When the TraceBufferPercentFull value is determined, the callback is
144 // called. 145 // called.
145 typedef base::Callback<void(float)> GetTraceBufferPercentFullCallback; 146 typedef base::Callback<void(float)> GetTraceBufferPercentFullCallback;
146 virtual bool GetTraceBufferPercentFull( 147 virtual bool GetTraceBufferPercentFull(
147 const GetTraceBufferPercentFullCallback& callback) = 0; 148 const GetTraceBufferPercentFullCallback& callback) = 0;
148 149
150 // Configure a synthetic delay for all processes.
151 //
152 // Once all child processes have acked the delay configuration,
153 // ConfigureSyntheticDelayCallback is called back.
154 typedef base::Callback<void()> ConfigureSyntheticDelayCallback;
155 virtual void ConfigureSyntheticDelay(
156 const std::string& name,
157 base::TimeDelta target_duration,
158 base::debug::TraceEventSyntheticDelay::Mode mode,
159 const ConfigureSyntheticDelayCallback& callback) = 0;
160
149 protected: 161 protected:
150 virtual ~TracingController() {} 162 virtual ~TracingController() {}
151 }; 163 };
152 164
153 } // namespace content 165 } // namespace content
154 166
155 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_ 167 #endif // CONTENT_PUBLIC_BROWSER_TRACING_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698