tracer

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package tracer implements a context and evaluator for the interpreter which builds a graph by tracing operators being executed when GX code is interpreted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompiledFunc

type CompiledFunc interface {
	// Run the function for the given GX values.
	Run(receiver values.Value, args []values.Value, tracer trace.Callback) ([]values.Value, error)
}

CompiledFunc is a function compiled for a given receiver and argument shapes which is ready to run.

func Trace

func Trace(dev *api.Device, fn *ir.FuncDecl, receiver values.Value, args []values.Value, options []options.PackageOption) (_ CompiledFunc, err error)

Trace a function and returns a runner to run the function on the device.

Jump to

Keyboard shortcuts

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