- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for stack_frame (0.24 sec)
-
src/internal/trace/internal/testgen/go122/trace.go
} } return raw.Event{ Version: version.Go122, Ev: ev, Args: args, Data: data, } } type stack struct { stk [32]trace.StackFrame len int } var ( NoString = "" NoStack = []trace.StackFrame{} ) // Generation represents a single generation in the trace. type Generation struct { trace *Trace gen uint64 batches []*Batch
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 9.7K bytes - Viewed (0) -
src/cmd/trace/viewer.go
// used to store the frames to reduce allocations. func viewerFrames(stk trace.Stack) []*trace.Frame { var frames []*trace.Frame stk.Frames(func(f trace.StackFrame) bool { frames = append(frames, &trace.Frame{ PC: f.PC, Fn: f.Func, File: f.File, Line: int(f.Line), }) return true }) return frames }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.4K bytes - Viewed (0) -
src/runtime/trace_cgo_test.go
} return candidates[0] } // dumpStack returns e.Stack() as a string. func dumpStackV2(e *trace.Event) string { var buf bytes.Buffer e.Stack().Frames(func(f trace.StackFrame) bool { file := strings.TrimPrefix(f.File, runtime.GOROOT()) fmt.Fprintf(&buf, "%s\n\t%s:%d\n", f.Func, file, f.Line) return true }) return buf.String()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.6K bytes - Viewed (0) -
src/cmd/trace/jsontrace_test.go
// at the root of the stack trace is named name. func filterStackRootFunc(name string) eventFilterFn { return func(e *format.Event, data *format.Data) bool { frames := stackFrames(data, e.Stack) rootFrame := frames[len(frames)-1] return strings.HasPrefix(rootFrame, name+":") } } // filterViewerTrace returns a copy of data with only the events that pass all
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 7.8K bytes - Viewed (0)