android

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package android contains the android specific Perfetto tracing code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupProfileLayersSource

func SetupProfileLayersSource(ctx context.Context, d adb.Device, apk *android.InstalledPackage, abi *device.ABI) (app.Cleanup, error)

SetupProfileLayersSource configures the device to allow packages to be used as layer sources for profiling

Types

type Process

type Process struct {
	// contains filtered or unexported fields
}

Process represents a running Perfetto capture.

func Start

func Start(ctx context.Context, d adb.Device, a *android.ActivityAction, opts *service.TraceOptions, abi *device.ABI, layers []string) (*Process, app.Cleanup, error)

Start optional starts an app and sets up a Perfetto trace

func (*Process) Capture

func (p *Process) Capture(ctx context.Context, start task.Signal, stop task.Signal, ready task.Task, w io.Writer, written *int64) (int64, error)

Capture starts the perfetto capture.

Jump to

Keyboard shortcuts

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