MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / FrameAt

Method FrameAt

pkg/callstack/callstack.go:196–201  ·  view source on GitHub ↗

FrameAt returns the stack frame at the specified index.

(i int)

Source from the content-addressed store, hash-verified

194
195// FrameAt returns the stack frame at the specified index.
196func (s *Callstack) FrameAt(i int) Frame {
197 if i > len(*s)-1 {
198 return Frame{}
199 }
200 return (*s)[i]
201}
202
203// Depth returns the number of frames in the call stack.
204func (s *Callstack) Depth() int { return len(*s) }

Callers 4

ColorizeMethod · 0.95
framePIDFunction · 0.80
GetMethod · 0.80
CallMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected