trace

package standard library
go1.22.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: BSD-3-Clause Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL