package trace
import "cmd/go/internal/trace"
Index ¶
- func Flow(ctx context.Context, from *Span, to *Span)
- func Start(ctx context.Context, file string) (context.Context, func() error, error)
- func StartGoroutine(ctx context.Context) context.Context
- type Span
Functions ¶
func Flow ¶
Flow marks a flow indicating that the 'to' span depends on the 'from' span. Flow should be called while the 'to' span is in progress.
func Start ¶
Start starts a trace which writes to the given file.
func StartGoroutine ¶
StartGoroutine associates the context with a new Thread ID. The Chrome trace viewer associates each trace event with a thread, and doesn't expect events with the same thread id to happen at the same time.
Types ¶
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
func StartSpan ¶
StartSpan starts a trace event with the given name. The Span ends when its Done method is called.
func (*Span) Done ¶
func (s *Span) Done()
Source Files ¶
- Version
- v1.24.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 4 minutes ago –
Tools for package owners.