chromium/third_party/grpc/src/src/core/lib/debug/trace.cc

//
//
// Copyright 2015 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//

#include <grpc/support/port_platform.h>

#include "src/core/lib/debug/trace.h"

#include <string.h>

#include <type_traits>

#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>

GPR_GLOBAL_CONFIG_DEFINE_STRING(
    grpc_trace, "",
    "A comma separated list of tracers that provide additional insight into "
    "how gRPC C core is processing requests via debug logs.");

int grpc_tracer_set_enabled(const char* name, int enabled);

namespace grpc_core {

TraceFlag* TraceFlagList::root_tracer_ =;

bool TraceFlagList::Set(const char* name, bool enabled) {}

void TraceFlagList::Add(TraceFlag* flag) {}

void TraceFlagList::LogAllTracers() {}

// Flags register themselves on the list during construction
TraceFlag::TraceFlag(bool default_enabled, const char* name) :{}

}  // namespace grpc_core

static void add(const char* beg, const char* end, char*** ss, size_t* ns) {}

static void split(const char* s, char*** ss, size_t* ns) {}

static void parse(const char* s) {}

void grpc_tracer_init(const char* env_var_name) {}

void grpc_tracer_init() {}

int grpc_tracer_set_enabled(const char* name, int enabled) {}