Documentation ¶
Index ¶
- type DesktopTracer
- func (t *DesktopTracer) FindTraceTargets(ctx context.Context, str string) ([]*tracer.TraceTargetTreeNode, error)
- func (t *DesktopTracer) GetDevice() bind.Device
- func (t *DesktopTracer) GetTraceTargetNode(ctx context.Context, uri string, iconDensity float32) (*tracer.TraceTargetTreeNode, error)
- func (t *DesktopTracer) JoinPath(paths []string) string
- func (t *DesktopTracer) SetupTrace(ctx context.Context, o *service.TraceOptions) (tracer.Process, app.Cleanup, error)
- func (t *DesktopTracer) SplitPath(p string) (string, string)
- func (t *DesktopTracer) TraceConfiguration(ctx context.Context) (*service.DeviceTraceConfiguration, error)
- type GGPTracer
- func (t *GGPTracer) FindTraceTargets(ctx context.Context, str string) ([]*tracer.TraceTargetTreeNode, error)
- func (t *GGPTracer) GetTraceTargetNode(ctx context.Context, uri string, iconDensity float32) (*tracer.TraceTargetTreeNode, error)
- func (t *GGPTracer) SetupTrace(ctx context.Context, o *service.TraceOptions) (tracer.Process, app.Cleanup, error)
- func (t *GGPTracer) StartOnDevice(ctx context.Context, name string, opts *process.StartOptions) (int, error)
- func (t *GGPTracer) TraceConfiguration(ctx context.Context) (*service.DeviceTraceConfiguration, error)
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) SetupTrace ¶
func (t *DesktopTracer) SetupTrace(ctx context.Context, o *service.TraceOptions) (tracer.Process, app.Cleanup, error)
func (*DesktopTracer) SplitPath ¶
func (t *DesktopTracer) SplitPath(p string) (string, string)
SplitPath performs a path.Split() operation for this specific target
func (*DesktopTracer) TraceConfiguration ¶ added in v1.3.1
func (t *DesktopTracer) TraceConfiguration(ctx context.Context) (*service.DeviceTraceConfiguration, error)
TraceConfiguration returns the device's supported trace configuration.
type GGPTracer ¶ added in v1.6.0
type GGPTracer struct { DesktopTracer // contains filtered or unexported fields }
func NewGGPTracer ¶ added in v1.6.0
func (*GGPTracer) FindTraceTargets ¶ added in v1.6.0
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:
- File path and Application form: <Absolute Path>:<Application>, e.g.: "/mnt/developer/cube:MyApplication"
- 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 ¶ added in v1.6.0
func (t *GGPTracer) GetTraceTargetNode(ctx context.Context, uri string, iconDensity float32) (*tracer.TraceTargetTreeNode, error)
GetTraceTargetNode implements the tracer.Tracer interface.
func (*GGPTracer) SetupTrace ¶ added in v1.6.0
func (*GGPTracer) StartOnDevice ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (t *GGPTracer) TraceConfiguration(ctx context.Context) (*service.DeviceTraceConfiguration, error)
TraceConfiguration returns the device's supported trace configuration.