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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/tracing_controller.h
diff --git a/content/public/browser/tracing_controller.h b/content/public/browser/tracing_controller.h
index ae46199d2b9d55d7eec35bbf2abb74bab194d9f5..3353089dab4fb4e7d926959d03575f331109d6d1 100644
--- a/content/public/browser/tracing_controller.h
+++ b/content/public/browser/tracing_controller.h
@@ -8,6 +8,7 @@
#include <set>
#include "base/debug/trace_event.h"
+#include "base/debug/trace_event_synthetic_delay.h"
#include "content/common/content_export.h"
namespace base {
@@ -146,6 +147,17 @@ class TracingController {
virtual bool GetTraceBufferPercentFull(
const GetTraceBufferPercentFullCallback& callback) = 0;
+ // Configure a synthetic delay for all processes.
+ //
+ // Once all child processes have acked the delay configuration,
+ // ConfigureSyntheticDelayCallback is called back.
+ typedef base::Callback<void()> ConfigureSyntheticDelayCallback;
+ virtual void ConfigureSyntheticDelay(
+ const std::string& name,
+ base::TimeDelta target_duration,
+ base::debug::TraceEventSyntheticDelay::Mode mode,
+ const ConfigureSyntheticDelayCallback& callback) = 0;
+
protected:
virtual ~TracingController() {}
};

Powered by Google App Engine
This is Rietveld 408576698