MCPcopy
hub / github.com/uber-go/zap / Free

Method Free

internal/stacktrace/stack.go:113–117  ·  view source on GitHub ↗

Free releases resources associated with this stacktrace and returns it back to the pool.

()

Source from the content-addressed store, hash-verified

111// Free releases resources associated with this stacktrace
112// and returns it back to the pool.
113func (st *Stack) Free() {
114 st.frames = nil
115 st.pcs = nil
116 _stackPool.Put(st)
117}
118
119// Count reports the total number of frames in this stacktrace.
120// Count DOES NOT change as Next is called.

Callers 1

TakeFunction · 0.45

Calls 1

PutMethod · 0.80

Tested by

no test coverage detected