Free releases resources associated with this stacktrace and returns it back to the pool.
()
| 111 | // Free releases resources associated with this stacktrace |
| 112 | // and returns it back to the pool. |
| 113 | func (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. |