package trace

import "cmd/trace/v2"

Index

Functions

func GoroutineHandler

func GoroutineHandler(summaries map[tracev2.GoID]*trace.GoroutineSummary) http.HandlerFunc

GoroutineHandler creates a handler that serves information about goroutines in a particular group.

func GoroutinesHandlerFunc

func GoroutinesHandlerFunc(summaries map[tracev2.GoID]*trace.GoroutineSummary) http.HandlerFunc

GoroutinesHandlerFunc returns a HandlerFunc that serves list of goroutine groups.

func JSONTraceHandler

func JSONTraceHandler(parsed *parsedTrace) http.Handler

func Main

func Main(traceFile, httpAddr, pprof string, debug int) error

Main is the main function for cmd/trace v2.

func UserRegionHandlerFunc

func UserRegionHandlerFunc(t *parsedTrace) http.HandlerFunc

UserRegionHandlerFunc returns a HandlerFunc that presents the details of the selected regions.

func UserRegionsHandlerFunc

func UserRegionsHandlerFunc(t *parsedTrace) http.HandlerFunc

UserTasksHandlerFunc returns a HandlerFunc that reports all regions found in the trace.

func UserTaskHandlerFunc

func UserTaskHandlerFunc(t *parsedTrace) http.HandlerFunc

UserTaskHandlerFunc returns a HandlerFunc that presents the details of the selected tasks.

func UserTasksHandlerFunc

func UserTasksHandlerFunc(t *parsedTrace) http.HandlerFunc

UserTasksHandlerFunc returns a HandlerFunc that reports all tasks found in the trace.

Source Files

gen.go goroutinegen.go goroutines.go gstate.go jsontrace.go main.go pprof.go procgen.go regions.go tasks.go threadgen.go viewer.go

Version
v1.22.0-rc.1
Published
Dec 19, 2023
Platform
darwin/amd64
Imports
22 packages
Last checked
22 seconds ago

Tools for package owners.