Documentation ¶
Overview ¶
Package perfetto contains helper functions and constants to record traces and run metrics with perfetto protobufs.
Index ¶
Constants ¶
View Source
const ( // TraceProcessor is retrieved from the script in // https://get.perfetto.dev/trace_processor, with "os" being "linux" // and "arch" being "x86_64". // We download trace_processor_shell from gs bucket "perfetto". // Update the external data file correspondingly when we need to // uprev trace_processor_shell. TraceProcessor = "trace_processor_shell-linux-a3ce2cbf4cbe4f86cc10b02957db727cecfafae8" )
Variables ¶
This section is empty.
Functions ¶
func RunMetrics ¶
func RunMetrics(ctx context.Context, traceProcessorPath, outputPath string, metrics []string) (*perfetto_proto.TraceMetrics, error)
RunMetrics collects the result with trace_processor_shell.
func RunPerfetto ¶
func RunPerfetto(ctx context.Context, pc platform.PerfettoTraceBasedMetricsServiceClient, traceConfigPath string) (ret string, retErr error)
RunPerfetto uses gRPC to run perfetto cmdline with |traceConfigFile| in the DUT.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.