Versions in this module Expand all Collapse all v0 v0.0.47 Oct 31, 2023 v0.0.46 Oct 1, 2023 Changes in this version + const DefaultMemorySnapshotInterval + type ActionStrategy interface + After func() + Before func() + GetMetrics func() *Metrics + type DefaultStrategy struct + func (d *DefaultStrategy) After() + func (d *DefaultStrategy) Before() + func (d *DefaultStrategy) GetMetrics() *Metrics + type FunctionContext struct + func (f *FunctionContext) Execute() + type MemorySnapshot struct + Alloc uint64 + Time time.Time + type Metrics struct + AvgAllocMemory uint64 + ExecutionDuration time.Duration + FinishTime time.Time + MaxAllocMemory uint64 + MinAllocMemory uint64 + Snapshots []MemorySnapshot + StartTime time.Time + func Trace(f func(), setters ...TraceOptionSetter) (*Metrics, error) + type TraceOptionSetter func(opts *TraceOptions) + func WithAfter(a func()) TraceOptionSetter + func WithBefore(b func()) TraceOptionSetter + func WithStrategy(s ActionStrategy) TraceOptionSetter + type TraceOptions struct