package traces
Import Path
/tools/visualizer/traces (on go.dev)
Dependency Relation
imports 9 packages, and imported by one package
Involved Source Files
traces.go
Package-Level Type Names (total 4)
StateTrace is a single-state trace with spans.
state active during the current tx
Events are point-in-time annotations attached to this span.
state name
func (*View).SetSpans(spans []StateTrace)
TraceSpan is a lifespan inside a trace of a single state.
Desc string
End machine time.
Events []SpanEvent
Name string
Start machine time.
Compo livepage.Compo
Zoom int
App returns the component's app context, if mounted.
JSValue retrieves the JavaScript value associated with the component's root.
If the root element isn't defined, it returns a nil JavaScript value.
(*View) Mach() *am.Machine
Mounted checks if the component is currently mounted within the UI.
OnMount stores the component's context.
(*View) PageName() string
(*View) Render() UI
SetCurrentTime sets the marker for the selected transition.
SetSpans replaces the rendered span data.
SetStateColors sets state colors for the current transaction.
Update flags the component for re-render. No-op until mounted.
ValueTo captures the value of the DOM element (if it exists) that triggered
an event, and assigns it to the provided receiver. The receiver must be a
pointer pointing to either a string, integer, unsigned integer, or a float.
This method panics if the provided value isn't a pointer.
*View : github.com/pancsta/go-app/pkg/app.Composer
*View : github.com/pancsta/go-app/pkg/app.Mounter
*View : github.com/pancsta/go-app/pkg/app.UI
*View : github.com/pancsta/go-app/pkg/app.Wrapper
*View : github.com/pancsta/livepage.CompoLiveApi
Package-Level Functions (total 2)
HtmlPage wraps the rendered trace component into a full HTML document.
NewPage creates a live trace page served under prefix. A new set of demo
spans is generated periodically.
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |