RemoveBucket removes the bucket and all enqueued events.
(id uint64)
| 176 | |
| 177 | // RemoveBucket removes the bucket and all enqueued events. |
| 178 | func (s *StackwalkDecorator) RemoveBucket(id uint64) { |
| 179 | s.mux.Lock() |
| 180 | defer s.mux.Unlock() |
| 181 | delete(s.buckets, id) |
| 182 | stackwalkBuckets.Set(int64(len(s.buckets))) |
| 183 | } |
| 184 | |
| 185 | func (s *StackwalkDecorator) doFlush() { |
| 186 | for { |