chromium/base/trace_event/heap_profiler_allocation_context_tracker.cc

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

#include "base/trace_event/heap_profiler_allocation_context_tracker.h"

#include <ostream>

#include "base/atomicops.h"
#include "base/check_op.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "base/threading/thread_local_storage.h"

namespace base {
namespace trace_event {

std::atomic<AllocationContextTracker::CaptureMode>
    AllocationContextTracker::capture_mode_{};

namespace {

const size_t kMaxTaskDepth =;
AllocationContextTracker* const kInitializingSentinel =;

// This function is added to the TLS slot to clean up the instance when the
// thread exits.
void DestructAllocationContextTracker(void* alloc_ctx_tracker) {}

ThreadLocalStorage::Slot& AllocationContextTrackerTLS() {}

}  // namespace

// static
AllocationContextTracker*
AllocationContextTracker::GetInstanceForCurrentThread() {}

AllocationContextTracker::AllocationContextTracker() {}
AllocationContextTracker::~AllocationContextTracker() = default;

// static
void AllocationContextTracker::SetCurrentThreadName(const char* name) {}

// static
void AllocationContextTracker::SetCaptureMode(CaptureMode mode) {}

void AllocationContextTracker::PushCurrentTaskContext(const char* context) {}

void AllocationContextTracker::PopCurrentTaskContext(const char* context) {}

}  // namespace trace_event
}  // namespace base