| 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 SERVICES_TRACING_SERVICE_H_ | 5 #ifndef SERVICES_TRACING_SERVICE_H_ |
| 6 #define SERVICES_TRACING_SERVICE_H_ | 6 #define SERVICES_TRACING_SERVICE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // mojom::Factory: | 55 // mojom::Factory: |
| 56 void CreateRecorder(mojom::ProviderPtr provider) override; | 56 void CreateRecorder(mojom::ProviderPtr provider) override; |
| 57 | 57 |
| 58 // mojom::Collector: | 58 // mojom::Collector: |
| 59 void Start(mojo::ScopedDataPipeProducerHandle stream, | 59 void Start(mojo::ScopedDataPipeProducerHandle stream, |
| 60 const std::string& categories) override; | 60 const std::string& categories) override; |
| 61 void StopAndFlush() override; | 61 void StopAndFlush() override; |
| 62 | 62 |
| 63 // mojom::StartupPerformanceDataCollector: | 63 // mojom::StartupPerformanceDataCollector: |
| 64 void SetShellProcessCreationTime(int64_t time) override; | 64 void SetServiceManagerProcessCreationTime(int64_t time) override; |
| 65 void SetShellMainEntryPointTime(int64_t time) override; | 65 void SetServiceManagerMainEntryPointTime(int64_t time) override; |
| 66 void SetBrowserMessageLoopStartTicks(int64_t ticks) override; | 66 void SetBrowserMessageLoopStartTicks(int64_t ticks) override; |
| 67 void SetBrowserWindowDisplayTicks(int64_t ticks) override; | 67 void SetBrowserWindowDisplayTicks(int64_t ticks) override; |
| 68 void SetBrowserOpenTabsTimeDelta(int64_t delta) override; | 68 void SetBrowserOpenTabsTimeDelta(int64_t delta) override; |
| 69 void SetFirstWebContentsMainFrameLoadTicks(int64_t ticks) override; | 69 void SetFirstWebContentsMainFrameLoadTicks(int64_t ticks) override; |
| 70 void SetFirstVisuallyNonEmptyLayoutTicks(int64_t ticks) override; | 70 void SetFirstVisuallyNonEmptyLayoutTicks(int64_t ticks) override; |
| 71 void GetStartupPerformanceTimes( | 71 void GetStartupPerformanceTimes( |
| 72 const GetStartupPerformanceTimesCallback& callback) override; | 72 const GetStartupPerformanceTimesCallback& callback) override; |
| 73 | 73 |
| 74 void AllDataCollected(); | 74 void AllDataCollected(); |
| 75 | 75 |
| 76 mojo::BindingSet<mojom::Factory> bindings_; | 76 mojo::BindingSet<mojom::Factory> bindings_; |
| 77 std::unique_ptr<DataSink> sink_; | 77 std::unique_ptr<DataSink> sink_; |
| 78 ScopedVector<Recorder> recorder_impls_; | 78 ScopedVector<Recorder> recorder_impls_; |
| 79 mojo::InterfacePtrSet<mojom::Provider> provider_ptrs_; | 79 mojo::InterfacePtrSet<mojom::Provider> provider_ptrs_; |
| 80 mojo::Binding<mojom::Collector> collector_binding_; | 80 mojo::Binding<mojom::Collector> collector_binding_; |
| 81 mojo::BindingSet<mojom::StartupPerformanceDataCollector> | 81 mojo::BindingSet<mojom::StartupPerformanceDataCollector> |
| 82 startup_performance_data_collector_bindings_; | 82 startup_performance_data_collector_bindings_; |
| 83 mojom::StartupPerformanceTimes startup_performance_times_; | 83 mojom::StartupPerformanceTimes startup_performance_times_; |
| 84 bool tracing_active_; | 84 bool tracing_active_; |
| 85 mojo::String tracing_categories_; | 85 mojo::String tracing_categories_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(Service); | 87 DISALLOW_COPY_AND_ASSIGN(Service); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace tracing | 90 } // namespace tracing |
| 91 | 91 |
| 92 #endif // SERVICES_TRACING_SERVICE_H_ | 92 #endif // SERVICES_TRACING_SERVICE_H_ |
| OLD | NEW |