blob: d6e7b0068386ef5b60df4e82eab663d486ef0844 [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_(component::StartupContext::CreateFromStartupInfo()),
trace_manager_(context_.get(), config) {
context_->outgoing().AddPublicService(
trace_registry_bindings_.GetHandler(&trace_manager_));
context_->outgoing().AddPublicService(
trace_controller_bindings_.GetHandler(&trace_manager_));
}
TraceManagerApp::~TraceManagerApp() = default;
} // namespace tracing