github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/trace/v2/goroutines.go (about) 1 // Copyright 2023 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Goroutine-related profiles. 6 7 package trace 8 9 import ( 10 "github.com/shogo82148/std/internal/trace" 11 12 "github.com/shogo82148/std/net/http" 13 ) 14 15 // GoroutinesHandlerFunc returns a HandlerFunc that serves list of goroutine groups. 16 func GoroutinesHandlerFunc(summaries map[tracev2.GoID]*trace.GoroutineSummary) http.HandlerFunc 17 18 // GoroutineHandler creates a handler that serves information about 19 // goroutines in a particular group. 20 func GoroutineHandler(summaries map[tracev2.GoID]*trace.GoroutineSummary) http.HandlerFunc