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

Method clear

pkg/rules/sequence.go:370–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368}
369
370func (s *sequenceState) clear() {
371 s.partials = make(map[int][]*event.Event)
372 s.matches = make(map[int]*event.Event)
373 s.states = make(map[fsm.State]bool)
374 s.spanDeadlines = make(map[fsm.State]*time.Timer)
375 s.isPartialsBreached.Store(false)
376 partialsPerSequence.Delete(s.name)
377 s.lastMatch = time.Time{}
378}
379
380func (s *sequenceState) clearLocked() {
381 s.mu.Lock()

Callers 3

initFSMMethod · 0.95
clearLockedMethod · 0.95
TestSequenceStateFunction · 0.80

Calls 2

StoreMethod · 0.80
DeleteMethod · 0.45

Tested by 1

TestSequenceStateFunction · 0.64