Versions in this module Expand all Collapse all go1 go1.22.4 Jun 4, 2024 go1.22.3 May 7, 2024 go1.22.2 Apr 3, 2024 go1.22.1 Mar 5, 2024 go1.22.0 Feb 6, 2024 Changes in this version + const CommonStyle + func BuildProfile(prof []ProfileRecord) *profile.Profile + func MMUHandlerFunc(ranges []Range, f MutatorUtilFunc) http.HandlerFunc + func MainHandler(views []View) http.Handler + func SVGProfileHandlerFunc(f ProfileFunc) http.HandlerFunc + func StaticHandler() http.Handler + func TraceHandler() http.Handler + func WalkStackFrames(allFrames map[string]format.Frame, id int, fn func(id int)) + type ArrowEvent struct + End time.Duration + FromResource uint64 + FromStack int + Name string + Start time.Duration + ToResource uint64 + type AsyncSliceEvent struct + Category string + Scope string + TaskColorIndex uint64 + type Emitter struct + func NewEmitter(c TraceConsumer, rangeStart, rangeEnd time.Duration) *Emitter + func (e *Emitter) Arrow(a ArrowEvent) + func (e *Emitter) AsyncSlice(s AsyncSliceEvent) + func (e *Emitter) Err() error + func (e *Emitter) Event(ev *format.Event) + func (e *Emitter) Flush() + func (e *Emitter) Focus(id uint64) + func (e *Emitter) Gomaxprocs(v uint64) + func (e *Emitter) GoroutineTransition(ts time.Duration, from, to GState) + func (e *Emitter) HeapAlloc(ts time.Duration, v uint64) + func (e *Emitter) HeapGoal(ts time.Duration, v uint64) + func (e *Emitter) IncThreadStateCount(ts time.Duration, state ThreadState, delta int64) + func (e *Emitter) Instant(i InstantEvent) + func (e *Emitter) OptionalEvent(ev *format.Event) + func (e *Emitter) Resource(id uint64, name string) + func (e *Emitter) SetResourceFilter(filter func(uint64) bool) + func (e *Emitter) SetResourceType(name string) + func (e *Emitter) Slice(s SliceEvent) + func (e *Emitter) Stack(stk []*trace.Frame) int + func (e *Emitter) Task(id uint64, name string, sortIndex int) + func (e *Emitter) TaskArrow(a ArrowEvent) + func (e *Emitter) TaskSlice(s SliceEvent) + type GState int + const GDead + const GRunnable + const GRunning + const GWaiting + const GWaitingGC + type InstantEvent struct + Arg any + Category string + Name string + Resource uint64 + Stack int + Ts time.Duration + type Mode int + const ModeGoroutineOriented + const ModeTaskOriented + const ModeThreadOriented + type MutatorUtilFunc func(trace.UtilFlags) ([][]trace.MutatorUtil, error) + type ProfileFunc func(r *http.Request) ([]ProfileRecord, error) + type ProfileRecord struct + Count uint64 + Stack []*trace.Frame + Time time.Duration + type Range struct + End int + EndTime int64 + Name string + Start int + StartTime int64 + func (r Range) URL(viewType ViewType) string + type SliceEvent struct + Arg any + Dur time.Duration + EndStack int + Name string + Resource uint64 + Stack int + Ts time.Duration + type ThreadState int + const ThreadStateInSyscall + const ThreadStateInSyscallRuntime + const ThreadStateRunning + type TimeHistogram struct + Buckets []int + Count int + MaxBucket int + MinBucket int + func (h *TimeHistogram) Add(d time.Duration) + func (h *TimeHistogram) BucketMin(bucket int) time.Duration + func (h *TimeHistogram) ToHTML(urlmaker func(min, max time.Duration) string) template.HTML + type TraceConsumer struct + ConsumeTimeUnit func(unit string) + ConsumeViewerEvent func(v *format.Event, required bool) + ConsumeViewerFrame func(key string, f format.Frame) + Flush func() + func SplittingTraceConsumer(max int) (*splitter, TraceConsumer) + func ViewerDataTraceConsumer(w io.Writer, startIdx, endIdx int64) TraceConsumer + type View struct + Ranges []Range + Type ViewType + func (v View) URL(rangeIdx int) string + type ViewType string + const ViewProc + const ViewThread go1.22rc2 Jan 24, 2024 go1.22rc1 Dec 19, 2023