#include "src/trace_processor/importers/etw/etw_parser.h"
#include "perfetto/ext/base/string_view.h"
#include "src/trace_processor/importers/common/parser_types.h"
#include "src/trace_processor/importers/common/process_tracker.h"
#include "src/trace_processor/importers/common/sched_event_tracker.h"
#include "src/trace_processor/importers/common/thread_state_tracker.h"
#include "src/trace_processor/storage/trace_storage.h"
#include "protos/perfetto/trace/etw/etw.pbzero.h"
#include "protos/perfetto/trace/etw/etw_event.pbzero.h"
namespace perfetto {
namespace trace_processor {
namespace {
ConstBytes;
}
EtwParser::EtwParser(TraceProcessorContext* context) : … { … }
util::Status EtwParser::ParseEtwEvent(uint32_t cpu,
int64_t ts,
const TracePacketData& data) { … }
void EtwParser::ParseCswitch(int64_t timestamp, uint32_t cpu, ConstBytes blob) { … }
void EtwParser::ParseReadyThread(int64_t timestamp, ConstBytes blob) { … }
void EtwParser::PushSchedSwitch(uint32_t cpu,
int64_t ts,
uint32_t prev_tid,
int64_t prev_state,
uint32_t next_tid,
int32_t next_prio) { … }
StringId EtwParser::TaskStateToStringId(int64_t task_state_int) { … }
}
}