MCPcopy Index your code
hub / github.com/rabbitstack/fibratus / maxAddrLength

Method maxAddrLength

pkg/callstack/colorize.go:143–150  ·  view source on GitHub ↗

maxAddrLength measure the widest address string

()

Source from the content-addressed store, hash-verified

141
142// maxAddrLength measure the widest address string
143func (s Callstack) maxAddrLength() int {
144 maxw := 0
145 for _, f := range s {
146 w := len("0x") + len(f.Addr.String())
147 maxw = max(maxw, w)
148 }
149 return maxw
150}
151
152// colorizeUnbackedFrame renders the unbacked frame.
153func (f Frame) colorizeUnbacked() string {

Callers 1

ColorizeMethod · 0.95

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected