chromium/third_party/openscreen/src/util/trace_logging/scoped_trace_operations.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "util/trace_logging/scoped_trace_operations.h"

#include "platform/api/trace_logging_platform.h"
#include "platform/base/trace_logging_activation.h"
#include "util/osp_logging.h"

#if defined(ENABLE_TRACE_LOGGING)

namespace openscreen::internal {

// static
bool ScopedTraceOperation::TraceAsyncEnd(const uint32_t line,
                                         const char* file,
                                         TraceId id,
                                         Error::Code e) {}

ScopedTraceOperation::ScopedTraceOperation(TraceId trace_id,
                                           TraceId parent_id,
                                           TraceId root_id) {}

ScopedTraceOperation::~ScopedTraceOperation() {}

// static
thread_local ScopedTraceOperation::TraceStack* ScopedTraceOperation::traces_ =;

// static
thread_local ScopedTraceOperation* ScopedTraceOperation::root_node_ =;

// static
std::atomic<std::uint64_t> ScopedTraceOperation::trace_id_counter_{};

TraceLoggerBase::TraceLoggerBase(TraceCategory category,
                                 const char* name,
                                 const char* file,
                                 uint32_t line,
                                 std::vector<TraceEvent::Argument> arguments,
                                 TraceId current,
                                 TraceId parent,
                                 TraceId root)
    :{}

TraceLoggerBase::TraceLoggerBase(TraceCategory category,
                                 const char* name,
                                 const char* file,
                                 uint32_t line,
                                 std::vector<TraceEvent::Argument> arguments,
                                 TraceIdHierarchy ids)
    :{}

SynchronousTraceLogger::~SynchronousTraceLogger() {}

AsynchronousTraceLogger::~AsynchronousTraceLogger() {}

TraceIdSetter::~TraceIdSetter() = default;

}  // namespace openscreen::internal

#endif  // defined(ENABLE_TRACE_LOGGING)