blob: 4435baba1fc90301eab94e66f6995130fbb98d46 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "garnet/bin/trace_manager/app.h"
#include <utility>
namespace tracing {
TraceManagerApp::TraceManagerApp(const Config& config)
: context_(sys::ComponentContext::Create()),
trace_manager_(context_.get(), config),
tracelink_manager_(&trace_manager_) {
// TODO(PT-127): Remove after tracelink renaming complete.
context_->outgoing()->AddPublicService(
tracelink_registry_bindings_.GetHandler(&tracelink_manager_));
context_->outgoing()->AddPublicService(
trace_registry_bindings_.GetHandler(&trace_manager_));
context_->outgoing()->AddPublicService(
trace_controller_bindings_.GetHandler(&trace_manager_));
}
TraceManagerApp::~TraceManagerApp() = default;
} // namespace tracing