#include "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.h"
#include "src/trace_processor/importers/common/args_tracker.h"
#include "src/trace_processor/importers/common/event_tracker.h"
#include "src/trace_processor/importers/common/flow_tracker.h"
#include "src/trace_processor/importers/common/process_tracker.h"
#include "src/trace_processor/importers/common/slice_tracker.h"
#include "src/trace_processor/importers/common/track_tracker.h"
#include "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.h"
namespace perfetto {
namespace trace_processor {
namespace {
constexpr uint32_t kEvent = …;
constexpr uint32_t kInstant = …;
constexpr uint32_t kCounter = …;
constexpr uint32_t kDurationBegin = …;
constexpr uint32_t kDurationEnd = …;
constexpr uint32_t kDurationComplete = …;
constexpr uint32_t kAsyncBegin = …;
constexpr uint32_t kAsyncInstant = …;
constexpr uint32_t kAsyncEnd = …;
constexpr uint32_t kFlowBegin = …;
constexpr uint32_t kFlowStep = …;
constexpr uint32_t kFlowEnd = …;
constexpr uint32_t kNull = …;
constexpr uint32_t kInt32 = …;
constexpr uint32_t kUint32 = …;
constexpr uint32_t kInt64 = …;
constexpr uint32_t kUint64 = …;
constexpr uint32_t kDouble = …;
constexpr uint32_t kString = …;
constexpr uint32_t kPointer = …;
constexpr uint32_t kKoid = …;
constexpr uint32_t kBool = …;
}
FuchsiaTraceParser::FuchsiaTraceParser(TraceProcessorContext* context)
: … { … }
FuchsiaTraceParser::~FuchsiaTraceParser() = default;
std::optional<std::vector<FuchsiaTraceParser::Arg>>
FuchsiaTraceParser::ParseArgs(
fuchsia_trace_utils::RecordCursor& cursor,
uint32_t n_args,
std::function<StringId(base::StringView string)> intern_string,
std::function<StringId(uint32_t index)> get_string) { … }
void FuchsiaTraceParser::ParseFuchsiaRecord(int64_t, FuchsiaRecord fr) { … }
}
}