Versions in this module Expand all Collapse all v0 v0.1.0 Oct 30, 2026 Changes in this version + const DefaultBufferMB + const KeywordJit + const KeywordLoader + const ProviderRuntime + const ProviderSampleProfiler + var ErrNoEndpoint = errors.New("nettrace: no diagnostics endpoint for the process") + var ErrNoEvents = errors.New("nettrace: stream has no event or stack blocks") + var ErrNotNettrace = errors.New("nettrace: not a nettrace stream") + var ErrUnsupportedVersion = errors.New("nettrace: unsupported nettrace format version") + type Config struct + BufferMB uint32 + NoRundown bool + Providers []Provider + type Frame struct + Assembly string + IP uint64 + Method string + Type string + type Method struct + Assembly string + ModuleID uint64 + Name string + Namespace string + Size uint64 + StartAddress uint64 + type Provider struct + Arguments string + Keywords uint64 + Level uint32 + Name string + type RuntimeError struct + HResult uint32 + func (e *RuntimeError) Error() string + type Sample struct + Frames []Frame + Managed bool + ThreadID uint64 + Timestamp uint64 + type Session struct + func StartTracing(ctx context.Context, pid int, cfg Config, w io.Writer) (*Session, error) + func (s *Session) Stop(ctx context.Context) error + type Trace struct + Assemblies map[uint64]string + Methods []Method + Modules map[uint64]uint64 + PointerSize int + Samples []Sample + TimestampFrequency uint64 + func Parse(r io.Reader) (*Trace, error)