trace

package
v0.0.0-...-9202be0 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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTraceTargets

func FindTraceTargets(ctx context.Context, device path.Device, uri string) ([]*tracer.TraceTargetTreeNode, error)

FindTraceTargets returns trace targets matching the given search parameters.

func GetTracer

func GetTracer(ctx context.Context, device *path.Device) (tracer.Tracer, error)

func ProcessProfilingData

func ProcessProfilingData(ctx context.Context, device *path.Device, capture *path.Capture,
	buffer *bytes.Buffer, staticAnalysisResult chan *api.StaticAnalysisProfileData,
	handleMapping map[uint64][]service.VulkanHandleMappingItem, syncData *sync.Data) (*service.ProfilingData, error)

func PutManager

func PutManager(ctx context.Context, m *Manager) context.Context

PutManager attaches a manager to a Context.

func Trace

func Trace(ctx context.Context, device *path.Device, start task.Signal, stop task.Signal, ready task.Task, options *service.TraceOptions, written *int64) error

func TraceBuffered

func TraceBuffered(ctx context.Context, device *path.Device, start task.Signal, stop task.Signal, ready task.Task, options *service.TraceOptions, buffer *bytes.Buffer) error

func TraceConfiguration

func TraceConfiguration(ctx context.Context, device *path.Device) (*service.DeviceTraceConfiguration, error)

func TraceTargetTreeNode

func TraceTargetTreeNode(ctx context.Context, device path.Device, uri string, density float32) (*tracer.TraceTargetTreeNode, error)

TraceTargetTreeNode returns a trace target tree node for the given request

func Validate

func Validate(ctx context.Context, device *path.Device, enableLocalFiles bool) (*service.DeviceValidationResult, error)

Types

type Manager

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

Manager is used discover trace devices and to send trace requests to those discovered devices.

func GetManager

func GetManager(ctx context.Context) *Manager

GetManager retrieves the manager from a context previously annotated by PutManager.

func New

func New(ctx context.Context) *Manager

New returns a new Manager instance using the database db.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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