#include "src/trace_processor/importers/proto/perf_sample_tracker.h"
#include <stdio.h>
#include <cinttypes>
#include "perfetto/ext/base/string_utils.h"
#include "src/trace_processor/importers/common/track_tracker.h"
#include "src/trace_processor/storage/trace_storage.h"
#include "src/trace_processor/types/trace_processor_context.h"
#include "protos/perfetto/common/perf_events.pbzero.h"
#include "protos/perfetto/trace/profiling/profile_packet.pbzero.h"
#include "protos/perfetto/trace/trace_packet_defaults.pbzero.h"
namespace perfetto {
namespace trace_processor {
namespace {
const char* StringifyCounter(int32_t counter) { … }
StringId InternTimebaseCounterName(
const protos::pbzero::PerfSampleDefaults::Decoder& perf_defaults,
TraceProcessorContext* context) { … }
}
PerfSampleTracker::SamplingStreamInfo PerfSampleTracker::GetSamplingStreamInfo(
uint32_t seq_id,
uint32_t cpu,
protos::pbzero::TracePacketDefaults::Decoder* nullable_defaults) { … }
tables::PerfSessionTable::Id PerfSampleTracker::CreatePerfSession() { … }
}
}