summaryrefslogtreecommitdiff
path: root/internal/event
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-16 23:19:15 +0300
committerPaul Buetow <paul@buetow.org>2025-04-16 23:19:15 +0300
commitcd289eb0d978297b1e331da202eee09ca4c1290c (patch)
tree893466694b6cd7430bb00e353a8c8db55b42b07c /internal/event
parented7668ec893e21b4cf071c98dd5a292105aeec34 (diff)
add Equals
Diffstat (limited to 'internal/event')
-rw-r--r--internal/event/event.go1
-rw-r--r--internal/event/pair.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/internal/event/event.go b/internal/event/event.go
index aa0e317..165ffe3 100644
--- a/internal/event/event.go
+++ b/internal/event/event.go
@@ -15,5 +15,6 @@ type Event interface {
GetPid() uint32
GetTid() uint32
GetTime() uint64
+ Equals(other any) bool
Recycle()
}
diff --git a/internal/event/pair.go b/internal/event/pair.go
index 13ad7e0..0900b27 100644
--- a/internal/event/pair.go
+++ b/internal/event/pair.go
@@ -15,6 +15,7 @@ type Pair struct {
Comm string
Duration uint64
DurationToPrev uint64
+ Equals bool
}
func NewPair(enterEv Event) *Pair {