Package trace

import "cmd/trace/v2"
Overview
Index

Overview ▾

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.