desktop

package
v0.0.0-...-6c7272e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DesktopTracer

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

func NewTracer

func NewTracer(dev bind.Device) *DesktopTracer

func (*DesktopTracer) FindTraceTargets

func (t *DesktopTracer) FindTraceTargets(ctx context.Context, str string) ([]*tracer.TraceTargetTreeNode, error)

func (*DesktopTracer) GetDevice

func (t *DesktopTracer) GetDevice() bind.Device

func (*DesktopTracer) GetTraceTargetNode

func (t *DesktopTracer) GetTraceTargetNode(ctx context.Context, uri string, iconDensity float32) (*tracer.TraceTargetTreeNode, error)

func (*DesktopTracer) JoinPath

func (t *DesktopTracer) JoinPath(paths []string) string

JoinPath provides a path.Join() for this specific target

func (*DesktopTracer) ProcessProfilingData

func (t *DesktopTracer) ProcessProfilingData(ctx context.Context, buffer *bytes.Buffer, handleMapping *map[uint64][]service.VulkanHandleMappingItem) (*service.ProfilingData, error)

func (*DesktopTracer) SetupTrace

func (*DesktopTracer) SplitPath

func (t *DesktopTracer) SplitPath(p string) (string, string)

SplitPath performs a path.Split() operation for this specific target

func (*DesktopTracer) TraceConfiguration

func (t *DesktopTracer) TraceConfiguration(ctx context.Context) (*service.DeviceTraceConfiguration, error)

TraceConfiguration returns the device's supported trace configuration.

func (*DesktopTracer) Validate

func (t *DesktopTracer) Validate(ctx context.Context) error

type GGPTracer

type GGPTracer struct {
	DesktopTracer
	// contains filtered or unexported fields
}

func NewGGPTracer

func NewGGPTracer(ctx context.Context, dev bind.Device) (*GGPTracer, error)

func (*GGPTracer) FindTraceTargets

func (t *GGPTracer) FindTraceTargets(ctx context.Context, str string) ([]*tracer.TraceTargetTreeNode, error)

FindTraceTargets implements the tracer.Tracer interface. GGP tracer supports two forms of URI to specify tracing targets:

  1. File path and Application form: <Absolute Path>:<Application>, e.g.: "/mnt/developer/cube:MyApplication"
  2. Package ID (w/o Project Name) and Application form: If the package is in current project: "package=<Package ID>:<Application>" If the package is in another project: "package=<Project Name>/<Package ID>:<Application>"

e.g.:

		"package=ba843a36f96451b237138769fc141733pks1:MyApplication"
     "package=/PACKAGE/ba843a36f96451b237138769fc141733pks1:MyApplication"

Valid charactors for <Project Name> and <Application> are: [a-zA-Z0-9\s\_\-], valid charactors for <Package ID> are: [a-z0-9]. In case the given |str| is not a valid URI, error will be returned.

func (*GGPTracer) GetTraceTargetNode

func (t *GGPTracer) GetTraceTargetNode(ctx context.Context, uri string, iconDensity float32) (*tracer.TraceTargetTreeNode, error)

GetTraceTargetNode implements the tracer.Tracer interface.

func (*GGPTracer) SetupTrace

func (*GGPTracer) StartOnDevice

func (t *GGPTracer) StartOnDevice(ctx context.Context, name string, opts *process.StartOptions) (int, error)

StartOnDevice runs the application on the given remote device, with the given path and options, waits for the "Bound on port {port}" string to be printed to stdout, and then returns the port number.

func (*GGPTracer) TraceConfiguration

func (t *GGPTracer) TraceConfiguration(ctx context.Context) (*service.DeviceTraceConfiguration, error)

TraceConfiguration returns the device's supported trace configuration.

Jump to

Keyboard shortcuts

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