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 #include "mojo/services/tracing/public/cpp/trace_provider_impl.h" | 5 #include "services/tracing/public/cpp/trace_provider_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "base/trace_event/trace_config.h" | 13 #include "base/trace_event/trace_config.h" |
14 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
15 #include "services/shell/public/cpp/connection.h" | 15 #include "services/shell/public/cpp/connection.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // events. Empty string is not a valid chunk to record so skip in this case. | 93 // events. Empty string is not a valid chunk to record so skip in this case. |
94 if (!events_str->data().empty()) { | 94 if (!events_str->data().empty()) { |
95 recorder_->Record(mojo::String(events_str->data())); | 95 recorder_->Record(mojo::String(events_str->data())); |
96 } | 96 } |
97 if (!has_more_events) { | 97 if (!has_more_events) { |
98 recorder_.reset(); | 98 recorder_.reset(); |
99 } | 99 } |
100 } | 100 } |
101 | 101 |
102 } // namespace mojo | 102 } // namespace mojo |
OLD | NEW |