#include "src/trace_processor/util/debug_annotation_parser.h"
#include "perfetto/base/build_config.h"
#include "src/trace_processor/util/interned_message_view.h"
#include "protos/perfetto/trace/profiling/profile_common.pbzero.h"
#include "protos/perfetto/trace/track_event/debug_annotation.pbzero.h"
namespace perfetto {
namespace trace_processor {
namespace util {
namespace {
std::string SanitizeDebugAnnotationName(const std::string& raw_name) { … }
constexpr bool IsJsonSupported() { … }
}
DebugAnnotationParser::DebugAnnotationParser(ProtoToArgsParser& parser)
: … { … }
base::Status DebugAnnotationParser::ParseDebugAnnotationName(
protos::pbzero::DebugAnnotation::Decoder& annotation,
ProtoToArgsParser::Delegate& delegate,
std::string& result) { … }
DebugAnnotationParser::ParseResult
DebugAnnotationParser::ParseDebugAnnotationValue(
protos::pbzero::DebugAnnotation::Decoder& annotation,
ProtoToArgsParser::Delegate& delegate,
const ProtoToArgsParser::Key& context_name) { … }
base::Status DebugAnnotationParser::Parse(
protozero::ConstBytes data,
ProtoToArgsParser::Delegate& delegate) { … }
DebugAnnotationParser::ParseResult DebugAnnotationParser::ParseNestedValueArgs(
protozero::ConstBytes nested_value,
const ProtoToArgsParser::Key& context_name,
ProtoToArgsParser::Delegate& delegate) { … }
}
}
}