chromium/components/services/heap_profiling/public/cpp/heap_profiling_trace_source.cc

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

#include "components/services/heap_profiling/public/cpp/heap_profiling_trace_source.h"

#include "base/no_destructor.h"
#include "base/notreached.h"
#include "base/profiler/frame.h"
#include "base/profiler/module_cache.h"
#include "base/trace_event/trace_event.h"
#include "components/services/heap_profiling/public/cpp/merge_samples.h"
#include "services/tracing/public/cpp/perfetto/interning_index.h"
#include "services/tracing/public/cpp/perfetto/perfetto_producer.h"
#include "services/tracing/public/cpp/perfetto/perfetto_traced_process.h"
#include "services/tracing/public/cpp/stack_sampling/tracing_sampler_profiler.h"
#include "services/tracing/public/mojom/perfetto_service.mojom.h"
#include "third_party/perfetto/include/perfetto/ext/tracing/core/trace_writer.h"
#include "third_party/perfetto/protos/perfetto/trace/profiling/profile_packet.pbzero.h"
#include "third_party/perfetto/protos/perfetto/trace/trace_packet.pbzero.h"

namespace heap_profiling {

std::string GetHeapName(
    base::allocator::dispatcher::AllocationSubsystem allocator_type) {}

HeapProfilingTraceSource::HeapProfilingTraceSource()
    :{}

HeapProfilingTraceSource::~HeapProfilingTraceSource() = default;

// static
HeapProfilingTraceSource* HeapProfilingTraceSource::GetInstance() {}

void HeapProfilingTraceSource::StartTracingImpl(
    tracing::PerfettoProducer* producer,
    const perfetto::DataSourceConfig& data_source_config) {}

void HeapProfilingTraceSource::StopTracingImpl(
    base::OnceClosure stop_complete_callback) {}

void HeapProfilingTraceSource::Flush(
    base::RepeatingClosure flush_complete_callback) {}

bool HeapProfilingTraceSource::AddToTraceIfEnabled(
    const std::vector<base::SamplingHeapProfiler::Sample>& samples) {}

}  // namespace heap_profiling