Versions in this module Expand all Collapse all v0 v0.9.2202 Apr 21, 2024 v0.8.2202 Apr 19, 2024 v0.7.2202 Apr 19, 2024retracted 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