- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MainHandler (0.13 sec)
-
src/cmd/trace/main.go
return trace.MutatorUtilizationV2(parsed.events, flags), nil } mux := http.NewServeMux() // Main endpoint. mux.Handle("/", traceviewer.MainHandler([]traceviewer.View{ {Type: traceviewer.ViewProc, Ranges: ranges}, // N.B. Use the same ranges for threads. It takes a long time to compute // the split a second time, but the makeup of the events are similar enough
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 10.4K bytes - Viewed (0) -
src/internal/trace/traceviewer/http.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package traceviewer import ( "embed" "fmt" "html/template" "net/http" "strings" ) func MainHandler(views []View) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { if err := templMain.Execute(w, views); err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:29:53 UTC 2023 - 12.6K bytes - Viewed (0)