#include "base/trace_event/interned_args_helper.h"
#include "third_party/perfetto/include/perfetto/tracing/track_event_interned_data_index.h"
#include "third_party/perfetto/protos/perfetto/trace/interned_data/interned_data.pbzero.h"
#include "third_party/perfetto/protos/perfetto/trace/profiling/profile_common.pbzero.h"
#include "third_party/perfetto/protos/perfetto/trace/track_event/log_message.pbzero.h"
#include "third_party/perfetto/protos/perfetto/trace/track_event/source_location.pbzero.h"
#include "third_party/perfetto/protos/perfetto/trace/track_event/task_execution.pbzero.h"
namespace base {
namespace trace_event {
namespace {
const void* const kModuleCacheForTracingKey = …;
class ModuleCacheForTracing : public perfetto::TrackEventTlsStateUserData { … };
}
void InternedSourceLocation::Add(
perfetto::protos::pbzero::InternedData* interned_data,
size_t iid,
const TraceSourceLocation& location) { … }
void InternedLogMessage::Add(
perfetto::protos::pbzero::InternedData* interned_data,
size_t iid,
const std::string& log_message) { … }
void InternedBuildId::Add(perfetto::protos::pbzero::InternedData* interned_data,
size_t iid,
const std::string& build_id) { … }
void InternedMappingPath::Add(
perfetto::protos::pbzero::InternedData* interned_data,
size_t iid,
const std::string& mapping_path) { … }
size_t InternedMapping::Get(perfetto::EventContext* ctx,
const base::ModuleCache::Module* module) { … }
void InternedMapping::Add(perfetto::EventContext* ctx,
size_t iid,
const base::ModuleCache::Module* module) { … }
std::optional<size_t> InternedUnsymbolizedSourceLocation::Get(
perfetto::EventContext* ctx,
uintptr_t address) { … }
void InternedUnsymbolizedSourceLocation::Add(
perfetto::protos::pbzero::InternedData* interned_data,
size_t iid,
const UnsymbolizedSourceLocation& location) { … }
}
}