OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "mojo/common/tracing_impl.h" | 5 #include "mojo/common/tracing_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/trace_event/trace_event_impl.h" | 9 #include "base/trace_event/trace_event_impl.h" |
10 #include "mojo/public/cpp/application/application_impl.h" | |
11 #include "mojo/public/cpp/application/connect.h" | 10 #include "mojo/public/cpp/application/connect.h" |
12 #include "mojo/public/cpp/bindings/interface_handle.h" | 11 #include "mojo/public/cpp/bindings/interface_handle.h" |
13 #include "mojo/public/cpp/bindings/interface_request.h" | 12 #include "mojo/public/cpp/bindings/interface_request.h" |
14 #include "mojo/services/tracing/interfaces/trace_provider_registry.mojom.h" | 13 #include "mojo/services/tracing/interfaces/trace_provider_registry.mojom.h" |
15 #include "mojo/services/tracing/interfaces/tracing.mojom.h" | 14 #include "mojo/services/tracing/interfaces/tracing.mojom.h" |
16 | 15 |
17 namespace mojo { | 16 namespace mojo { |
18 | 17 |
19 TracingImpl::TracingImpl() {} | 18 TracingImpl::TracingImpl() {} |
20 | 19 |
(...skipping 12 matching lines...) Expand all Loading... |
33 if (args) { | 32 if (args) { |
34 if (std::find(args->begin(), args->end(), "--early-tracing") != args->end()) | 33 if (std::find(args->begin(), args->end(), "--early-tracing") != args->end()) |
35 provider_impl_.ForceEnableTracing(); | 34 provider_impl_.ForceEnableTracing(); |
36 } | 35 } |
37 #else | 36 #else |
38 provider_impl_.ForceEnableTracing(); | 37 provider_impl_.ForceEnableTracing(); |
39 #endif | 38 #endif |
40 } | 39 } |
41 | 40 |
42 } // namespace mojo | 41 } // namespace mojo |
OLD | NEW |