perfetto

package
v0.0.0-...-9474aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL