Lines Matching refs:Trace
36 // Or to collect a 5-second execution trace:
38 // wget http://localhost:6060/debug/pprof/trace?seconds=5
65 "runtime/trace"
76 http.HandleFunc("/debug/pprof/trace", Trace)
136 // Trace responds with the execution trace in binary form.
138 // The package initialization registers it as /debug/pprof/trace.
139 func Trace(w http.ResponseWriter, r *http.Request) {
153 // Set Content Type assuming trace.Start will work,
156 if err := trace.Start(w); err != nil {
157 // trace.Start failed, so no writes yet.
166 trace.Stop()