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

Unified Diff: mojo/services/tracing/tracing_app.h

Issue 1278673002: Add stats collection for telemetry startup.warm.blank_page test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cache and reuse a single mojo:tracing connection in mojo:html_viewer. Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/tracing/tracing_app.h
diff --git a/mojo/services/tracing/tracing_app.h b/mojo/services/tracing/tracing_app.h
index f652c29c96181e5e5b75a20e12f401a30d16f180..23a1f5cef956b252d8ebf4a395a8b636069b60a1 100644
--- a/mojo/services/tracing/tracing_app.h
+++ b/mojo/services/tracing/tracing_app.h
@@ -20,7 +20,9 @@ class TraceDataSink;
class TracingApp : public mojo::ApplicationDelegate,
public mojo::InterfaceFactory<TraceCoordinator>,
- public TraceCoordinator {
+ public TraceCoordinator,
+ public mojo::InterfaceFactory<StartupPerformanceController>,
+ public StartupPerformanceController {
public:
TracingApp();
~TracingApp() override;
@@ -34,17 +36,35 @@ class TracingApp : public mojo::ApplicationDelegate,
void Create(mojo::ApplicationConnection* connection,
mojo::InterfaceRequest<TraceCoordinator> request) override;
+ // mojo::InterfaceFactory<StartupPerformanceController> implementation.
+ void Create(
+ mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<StartupPerformanceController> request) override;
+
// tracing::TraceCoordinator implementation.
void Start(mojo::ScopedDataPipeProducerHandle stream,
const mojo::String& categories) override;
void StopAndFlush() override;
+ // tracing::StartupPerformanceController implementation.
+ void SetShellProcessCreationTime(int64 time) override;
+ void SetBrowserMessageLoopStartTime(int64 time) override;
+ void SetBrowserWindowDisplayTime(int64 time) override;
+ void SetBrowserOpenTabsTime(int64 time) override;
+ void SetFirstWebContentsMainFrameLoadTime(int64 time) override;
+ void SetFirstVisuallyNonEmptyLayoutTime(int64 time) override;
+ void GetStartupPerformanceTimes(
+ const GetStartupPerformanceTimesCallback& callback) override;
+
void AllDataCollected();
scoped_ptr<TraceDataSink> sink_;
ScopedVector<CollectorImpl> collector_impls_;
mojo::WeakInterfacePtrSet<TraceController> controller_ptrs_;
mojo::WeakBindingSet<TraceCoordinator> coordinator_bindings_;
+ mojo::WeakBindingSet<StartupPerformanceController>
+ startup_performance_controller_bindings_;
+ StartupPerformanceTimes startup_performance_times_;
DISALLOW_COPY_AND_ASSIGN(TracingApp);
};

Powered by Google App Engine
This is Rietveld 408576698