OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MOJO_SERVICES_TRACING_TRACING_APP_H_ | 5 #ifndef MOJO_SERVICES_TRACING_TRACING_APP_H_ |
6 #define MOJO_SERVICES_TRACING_TRACING_APP_H_ | 6 #define MOJO_SERVICES_TRACING_TRACING_APP_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 mojo::InterfaceRequest<StartupPerformanceDataCollector> request) override; | 44 mojo::InterfaceRequest<StartupPerformanceDataCollector> request) override; |
45 | 45 |
46 // tracing::TraceCollector implementation. | 46 // tracing::TraceCollector implementation. |
47 void Start(mojo::ScopedDataPipeProducerHandle stream, | 47 void Start(mojo::ScopedDataPipeProducerHandle stream, |
48 const mojo::String& categories) override; | 48 const mojo::String& categories) override; |
49 void StopAndFlush() override; | 49 void StopAndFlush() override; |
50 | 50 |
51 // StartupPerformanceDataCollector implementation. | 51 // StartupPerformanceDataCollector implementation. |
52 void SetShellProcessCreationTime(int64 time) override; | 52 void SetShellProcessCreationTime(int64 time) override; |
53 void SetShellMainEntryPointTime(int64 time) override; | 53 void SetShellMainEntryPointTime(int64 time) override; |
54 void SetBrowserMessageLoopStartTime(int64 time) override; | 54 void SetBrowserMessageLoopStartTicks(int64 ticks) override; |
55 void SetBrowserWindowDisplayTime(int64 time) override; | 55 void SetBrowserWindowDisplayTicks(int64 ticks) override; |
56 void SetBrowserOpenTabsTimeDelta(int64 delta) override; | 56 void SetBrowserOpenTabsTimeDelta(int64 delta) override; |
57 void SetFirstWebContentsMainFrameLoadTime(int64 time) override; | 57 void SetFirstWebContentsMainFrameLoadTicks(int64 ticks) override; |
58 void SetFirstVisuallyNonEmptyLayoutTime(int64 time) override; | 58 void SetFirstVisuallyNonEmptyLayoutTicks(int64 ticks) override; |
59 void GetStartupPerformanceTimes( | 59 void GetStartupPerformanceTimes( |
60 const GetStartupPerformanceTimesCallback& callback) override; | 60 const GetStartupPerformanceTimesCallback& callback) override; |
61 | 61 |
62 void AllDataCollected(); | 62 void AllDataCollected(); |
63 | 63 |
64 scoped_ptr<TraceDataSink> sink_; | 64 scoped_ptr<TraceDataSink> sink_; |
65 ScopedVector<TraceRecorderImpl> recorder_impls_; | 65 ScopedVector<TraceRecorderImpl> recorder_impls_; |
66 mojo::WeakInterfacePtrSet<TraceProvider> provider_ptrs_; | 66 mojo::WeakInterfacePtrSet<TraceProvider> provider_ptrs_; |
67 mojo::Binding<TraceCollector> collector_binding_; | 67 mojo::Binding<TraceCollector> collector_binding_; |
68 mojo::WeakBindingSet<StartupPerformanceDataCollector> | 68 mojo::WeakBindingSet<StartupPerformanceDataCollector> |
69 startup_performance_data_collector_bindings_; | 69 startup_performance_data_collector_bindings_; |
70 StartupPerformanceTimes startup_performance_times_; | 70 StartupPerformanceTimes startup_performance_times_; |
71 bool tracing_active_; | 71 bool tracing_active_; |
72 mojo::String tracing_categories_; | 72 mojo::String tracing_categories_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(TracingApp); | 74 DISALLOW_COPY_AND_ASSIGN(TracingApp); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace tracing | 77 } // namespace tracing |
78 | 78 |
79 #endif // MOJO_SERVICES_TRACING_TRACING_APP_H_ | 79 #endif // MOJO_SERVICES_TRACING_TRACING_APP_H_ |
OLD | NEW |