Documentation ¶
Overview ¶
Package resolve exposes functions for performing complex data queries.
Index ¶
- func APIStateAfter(c *path.Command, a api.ID) path.Node
- func ArrayIndex(ctx context.Context, p *path.ArrayIndex, r *path.ResolveConfig) (interface{}, error)
- func As(ctx context.Context, p *path.As, r *path.ResolveConfig) (interface{}, error)
- func Blob(ctx context.Context, p *path.Blob, r *path.ResolveConfig) ([]byte, error)
- func Capture(ctx context.Context, p *path.Capture, r *path.ResolveConfig) (*service.Capture, error)
- func Cmd(ctx context.Context, p *path.Command, r *path.ResolveConfig) (api.Cmd, error)
- func Cmds(ctx context.Context, p *path.Capture) ([]api.Cmd, error)
- func CommandThumbnail(ctx context.Context, w, h uint32, f *image.Format, noOpt bool, p *path.Command, ...) (*image.Info, error)
- func CommandTree(ctx context.Context, c *path.CommandTree, r *path.ResolveConfig) (*service.CommandTree, error)
- func CommandTreeNode(ctx context.Context, c *path.CommandTreeNode, r *path.ResolveConfig) (*service.CommandTreeNode, error)
- func CommandTreeNodeForCommand(ctx context.Context, p *path.CommandTreeNodeForCommand, r *path.ResolveConfig) (*path.CommandTreeNode, error)
- func CommandTreeNodeThumbnail(ctx context.Context, w, h uint32, f *image.Format, noOpt bool, ...) (*image.Info, error)
- func Commands(ctx context.Context, p *path.Commands, r *path.ResolveConfig) (*service.Commands, error)
- func ConstantSet(ctx context.Context, p *path.ConstantSet, r *path.ResolveConfig) (*service.ConstantSet, error)
- func Delete(ctx context.Context, p *path.Any, r *path.ResolveConfig) (*path.Any, error)
- func Device(ctx context.Context, p *path.Device, r *path.ResolveConfig) (*device.Instance, error)
- func DeviceTraceConfiguration(ctx context.Context, p *path.DeviceTraceConfiguration, r *path.ResolveConfig) (*service.DeviceTraceConfiguration, error)
- func Field(ctx context.Context, p *path.Field, r *path.ResolveConfig) (interface{}, error)
- func Find(ctx context.Context, req *service.FindRequest, h service.FindHandler) error
- func Follow(ctx context.Context, p *path.Any, r *path.ResolveConfig) (*path.Any, error)
- func FramebufferAttachment(ctx context.Context, p *path.FramebufferAttachment, r *path.ResolveConfig) (interface{}, error)
- func FramebufferAttachmentThumbnail(ctx context.Context, f *image.Format, p *path.FramebufferAttachment, ...) (*image.Info, error)
- func FramebufferAttachments(ctx context.Context, p *path.FramebufferAttachments, r *path.ResolveConfig) (interface{}, error)
- func FramebufferObservation(ctx context.Context, p *path.FramebufferObservation, r *path.ResolveConfig) (*image.Info, error)
- func Framegraph(ctx context.Context, p *path.Framegraph, r *path.ResolveConfig) (interface{}, error)
- func Get(ctx context.Context, p *path.Any, r *path.ResolveConfig) (interface{}, error)
- func GlobalState(ctx context.Context, p *path.GlobalState, r *path.ResolveConfig) (*api.GlobalState, error)
- func ImageInfo(ctx context.Context, p *path.ImageInfo, r *path.ResolveConfig) (*image.Info, error)
- func MapIndex(ctx context.Context, p *path.MapIndex, r *path.ResolveConfig) (interface{}, error)
- func Memory(ctx context.Context, p *path.Memory, rc *path.ResolveConfig) (*service.Memory, error)
- func MemoryAsType(ctx context.Context, p *path.MemoryAsType, rc *path.ResolveConfig) (*memory_box.Value, error)
- func Mesh(ctx context.Context, p *path.Mesh, r *path.ResolveConfig) (*api.Mesh, error)
- func Messages(ctx context.Context, p *path.Messages) (interface{}, error)
- func Metrics(ctx context.Context, p *path.Metrics, r *path.ResolveConfig) (*api.Metrics, error)
- func MultiResourceDataThumbnail(ctx context.Context, w, h uint32, f *image.Format, p *path.MultiResourceData, ...) (*service.MultiResourceThumbnail, error)
- func NCmds(ctx context.Context, p *path.Capture, n uint64) ([]api.Cmd, error)
- func Parameter(ctx context.Context, p *path.Parameter, r *path.ResolveConfig) (interface{}, error)
- func Pipelines(ctx context.Context, p *path.Pipelines, r *path.ResolveConfig) (interface{}, error)
- func ProfileStaticAnalysis(ctx context.Context, p *path.Capture) (*api.StaticAnalysisProfileData, error)
- func Report(ctx context.Context, p *path.Report, r *path.ResolveConfig) (*service.Report, error)
- func ResolveInternal(ctx context.Context, p path.Node, r *path.ResolveConfig) (interface{}, error)
- func ResolveService(ctx context.Context, p path.Node, r *path.ResolveConfig) (interface{}, error)
- func ResourceData(ctx context.Context, p *path.ResourceData, r *path.ResolveConfig) (interface{}, error)
- func ResourceDataThumbnail(ctx context.Context, w, h uint32, f *image.Format, p *path.ResourceData, ...) (*image.Info, error)
- func ResourceDatas(ctx context.Context, p *path.MultiResourceData, r *path.ResolveConfig) (interface{}, error)
- func ResourceExtras(ctx context.Context, p *path.ResourceExtras, r *path.ResolveConfig) (interface{}, error)
- func ResourceIDMap(ctx context.Context, after *path.Command, r *path.ResolveConfig) (api.ResourceMap, error)
- func ResourceMeta(ctx context.Context, ids []*path.ID, after *path.Command, ...) ([]api.Resource, error)
- func Resources(ctx context.Context, c *path.Capture, r *path.ResolveConfig) (*service.Resources, error)
- func Result(ctx context.Context, p *path.Result, r *path.ResolveConfig) (interface{}, error)
- func Set(ctx context.Context, p *path.Any, v interface{}, r *path.ResolveConfig) (*path.Any, error)
- func SetupContext(ctx context.Context, c *path.Capture, r *path.ResolveConfig) context.Context
- func Slice(ctx context.Context, p *path.Slice, r *path.ResolveConfig) (interface{}, error)
- func State(ctx context.Context, p *path.State, r *path.ResolveConfig) (interface{}, error)
- func StateTree(ctx context.Context, c *path.StateTree, r *path.ResolveConfig) (*service.StateTree, error)
- func StateTreeNode(ctx context.Context, p *path.StateTreeNode, r *path.ResolveConfig) (*service.StateTreeNode, error)
- func StateTreeNodeForPath(ctx context.Context, p *path.StateTreeNodeForPath, r *path.ResolveConfig) (*path.StateTreeNode, error)
- func Stats(ctx context.Context, p *path.Stats, r *path.ResolveConfig) (*service.Stats, error)
- func SyncData(ctx context.Context, p *path.Capture) (*sync.Data, error)
- func Thumbnail(ctx context.Context, p *path.Thumbnail, r *path.ResolveConfig) (interface{}, error)
- func Type(ctx context.Context, p *path.Type, r *path.ResolveConfig) (interface{}, error)
- type AttachmentFramebufferChanges
- type CmdGroupData
- type CommandFilter
- type CommandFilters
- type FramebufferAttachmentInfo
- type IndexRange
- type ResolvedResources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIStateAfter ¶
APIStateAfter returns an absolute path to the API state after c.
func ArrayIndex ¶
func ArrayIndex(ctx context.Context, p *path.ArrayIndex, r *path.ResolveConfig) (interface{}, error)
ArrayIndex resolves and returns the array or slice element from the path p.
func CommandThumbnail ¶
func CommandThumbnail( ctx context.Context, w, h uint32, f *image.Format, noOpt bool, p *path.Command, r *path.ResolveConfig) (*image.Info, error)
CommandThumbnail resolves and returns the thumbnail for the framebuffer at p.
func CommandTree ¶
func CommandTree(ctx context.Context, c *path.CommandTree, r *path.ResolveConfig) (*service.CommandTree, error)
CommandTree resolves the specified command tree path.
func CommandTreeNode ¶
func CommandTreeNode(ctx context.Context, c *path.CommandTreeNode, r *path.ResolveConfig) (*service.CommandTreeNode, error)
CommandTreeNode resolves the specified command tree node path.
func CommandTreeNodeForCommand ¶
func CommandTreeNodeForCommand(ctx context.Context, p *path.CommandTreeNodeForCommand, r *path.ResolveConfig) (*path.CommandTreeNode, error)
CommandTreeNodeForCommand returns the path to the CommandTreeNode that represents the specified command.
func CommandTreeNodeThumbnail ¶
func CommandTreeNodeThumbnail( ctx context.Context, w, h uint32, f *image.Format, noOpt bool, p *path.CommandTreeNode, r *path.ResolveConfig) (*image.Info, error)
CommandTreeNodeThumbnail resolves and returns the thumbnail for the framebuffer at p.
func Commands ¶
func Commands(ctx context.Context, p *path.Commands, r *path.ResolveConfig) (*service.Commands, error)
Commands resolves and returns the command list from the path p.
func ConstantSet ¶
func ConstantSet(ctx context.Context, p *path.ConstantSet, r *path.ResolveConfig) (*service.ConstantSet, error)
ConstantSet resolves and returns the constant set from the path p.
func Delete ¶
Delete creates a copy of the capture referenced by p, but without the object, value or memory at p. The path returned is identical to p, but with the base changed to refer to the new capture.
func DeviceTraceConfiguration ¶
func DeviceTraceConfiguration(ctx context.Context, p *path.DeviceTraceConfiguration, r *path.ResolveConfig) (*service.DeviceTraceConfiguration, error)
DeviceTraceConfiguration resolves and returns the trace config for a device.
func Find ¶
func Find(ctx context.Context, req *service.FindRequest, h service.FindHandler) error
Find performs a search using req and calling handler for each result.
func Follow ¶
Follow resolves the path to the object that the value at Path links to. If the value at Path does not link to anything then nil is returned.
func FramebufferAttachment ¶
func FramebufferAttachment(ctx context.Context, p *path.FramebufferAttachment, r *path.ResolveConfig) (interface{}, error)
FramebufferAttachment resolves the specified framebuffer attachment at the specified point in a capture.
func FramebufferAttachments ¶
func FramebufferAttachments(ctx context.Context, p *path.FramebufferAttachments, r *path.ResolveConfig) (interface{}, error)
func FramebufferObservation ¶
func FramebufferObservation(ctx context.Context, p *path.FramebufferObservation, r *path.ResolveConfig) (*image.Info, error)
FramebufferObservation returns the framebuffer observation for the given command.
func Framegraph ¶
func Framegraph(ctx context.Context, p *path.Framegraph, r *path.ResolveConfig) (interface{}, error)
Framegraph returns the framegraph generated by the capture's API.
func GlobalState ¶
func GlobalState(ctx context.Context, p *path.GlobalState, r *path.ResolveConfig) (*api.GlobalState, error)
GlobalState resolves the global *api.GlobalState at a requested point in a capture.
func MemoryAsType ¶
func MemoryAsType(ctx context.Context, p *path.MemoryAsType, rc *path.ResolveConfig) (*memory_box.Value, error)
MemoryAsType resolves and returns the memory from the path p. This is a resolving function accessible indirectly to gapic.
func MultiResourceDataThumbnail ¶
func MultiResourceDataThumbnail(ctx context.Context, w, h uint32, f *image.Format, p *path.MultiResourceData, r *path.ResolveConfig) (*service.MultiResourceThumbnail, error)
MultiResourceDataThumbnail resolves and returns the thumbnails for multiple resources at p.
func NCmds ¶
NCmds resolves and returns the command list from the path p, ensuring that the number of commands is at least N.
func Pipelines ¶
Pipelines resolves the data of the currently bound pipelines at the specified point in the capture.
func ProfileStaticAnalysis ¶
func ProfileStaticAnalysis(ctx context.Context, p *path.Capture) (*api.StaticAnalysisProfileData, error)
ProfileStaticAnalysis resolves the static analysis profiling data.
func ResolveInternal ¶
ResolveInternal resolves and returns the object, value or memory at the path p without converting the potentially internal result to a service representation.
func ResolveService ¶
ResolveService resolves and returns the object, value or memory at the path p, converting the final result to the service representation.
func ResourceData ¶
func ResourceData(ctx context.Context, p *path.ResourceData, r *path.ResolveConfig) (interface{}, error)
ResourceData resolves the data of the specified resource at the specified point in the capture.
func ResourceDataThumbnail ¶
func ResourceDataThumbnail(ctx context.Context, w, h uint32, f *image.Format, p *path.ResourceData, r *path.ResolveConfig) (*image.Info, error)
ResourceDataThumbnail resolves and returns the thumbnail for the resource at p.
func ResourceDatas ¶
func ResourceDatas(ctx context.Context, p *path.MultiResourceData, r *path.ResolveConfig) (interface{}, error)
ResourceDatas resolves the data of multiple resources at the specified point in the capture.
func ResourceExtras ¶
func ResourceExtras(ctx context.Context, p *path.ResourceExtras, r *path.ResolveConfig) (interface{}, error)
func ResourceIDMap ¶
func ResourceIDMap(ctx context.Context, after *path.Command, r *path.ResolveConfig) (api.ResourceMap, error)
ResourceIDMap returns the ResourceMap at the given command.
func ResourceMeta ¶
func ResourceMeta(ctx context.Context, ids []*path.ID, after *path.Command, r *path.ResolveConfig) ([]api.Resource, error)
ResourceMeta returns the metadata for the specified resource.
func Resources ¶
func Resources(ctx context.Context, c *path.Capture, r *path.ResolveConfig) (*service.Resources, error)
Resources resolves all the resources used by the specified capture.
func Set ¶
Set creates a copy of the capture referenced by the request's path, but with the object, value or memory at p replaced with v. The path returned is identical to p, but with the base changed to refer to the new capture.
func SetupContext ¶
SetupContext binds the capture and a replay device to the returned context.
func StateTree ¶
func StateTree(ctx context.Context, c *path.StateTree, r *path.ResolveConfig) (*service.StateTree, error)
StateTree resolves the specified state tree path.
func StateTreeNode ¶
func StateTreeNode(ctx context.Context, p *path.StateTreeNode, r *path.ResolveConfig) (*service.StateTreeNode, error)
StateTreeNode resolves the specified command tree node path.
func StateTreeNodeForPath ¶
func StateTreeNodeForPath(ctx context.Context, p *path.StateTreeNodeForPath, r *path.ResolveConfig) (*path.StateTreeNode, error)
StateTreeNodeForPath returns the path to the StateTreeNode representing the path p.
Types ¶
type AttachmentFramebufferChanges ¶
type AttachmentFramebufferChanges struct {
// contains filtered or unexported fields
}
AttachmentFramebufferChanges describes the list of attachment changes over the span of the entire capture.
func FramebufferChanges ¶
func FramebufferChanges(ctx context.Context, c *path.Capture, r *path.ResolveConfig) (*AttachmentFramebufferChanges, error)
FramebufferChanges returns the list of attachment changes over the span of the entire capture.
func (AttachmentFramebufferChanges) Get ¶
func (c AttachmentFramebufferChanges) Get(ctx context.Context, after *path.Command, att uint32) (FramebufferAttachmentInfo, error)
Get returns the framebuffer dimensions and format after a given command in the given capture, command and attachment.
type CmdGroupData ¶
CmdGroupData is the additional metadata assigned to api.CmdIDGroups UserData field.
type CommandFilter ¶
CommandFilter is a predicate used for filtering commands. If the function returns true then the command is considered, otherwise it is ignored.
type CommandFilters ¶
type CommandFilters []CommandFilter
CommandFilters is a list of CommandFilters.
type FramebufferAttachmentInfo ¶
type FramebufferAttachmentInfo struct { // After is the index of the last command to change the attachment. After api.SubCmdIdx // Width of the framebuffer attachment in pixels. Width uint32 // Height of the framebuffer attachment in pixels. Height uint32 // Can this image be resized in the server CanResize bool // Index of the api-specific attachment. Index uint32 // Format of the attachment. Format *image.Format // Type of the attachment. Type api.FramebufferAttachmentType // The error returned by the API. If this is non-null then all other fields // may contain undefined values. Err error }
FramebufferAttachmentInfo describes the dimensions and format of a framebuffer attachment.
type IndexRange ¶
IndexRange represents the range of indices which were referenced by index buffer.
type ResolvedResources ¶
type ResolvedResources struct {
// contains filtered or unexported fields
}
ResolvedResources contains all of the resolved resources for a particular point in the trace.
Source Files ¶
- as.go
- command_tree.go
- commands.go
- constant_set.go
- delete.go
- doc.go
- errors.go
- filter.go
- find.go
- follow.go
- framebuffer_attachment.go
- framebuffer_attachment_data.go
- framebuffer_changes.go
- framebuffer_observation.go
- framegraph.go
- get.go
- index_limits.go
- memory.go
- mesh.go
- metrics.go
- pipeline.go
- profile_static_analysis.go
- report.go
- resolve.go
- resource_data.go
- resource_meta.go
- resources.go
- service.go
- set.go
- state.go
- state_tree.go
- stats.go
- synchronization_data.go
- thumbnail.go