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

Method RemoveBucket

pkg/event/stackwalk.go:178–183  ·  view source on GitHub ↗

RemoveBucket removes the bucket and all enqueued events.

(id uint64)

Source from the content-addressed store, hash-verified

176
177// RemoveBucket removes the bucket and all enqueued events.
178func (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
185func (s *StackwalkDecorator) doFlush() {
186 for {

Callers 1

pushMethod · 0.80

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
SetMethod · 0.65

Tested by

no test coverage detected