From 287d6acfa17f708fb2d6aecfa4de231a41a1dd12 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 2 Sep 2024 11:53:30 +0200 Subject: pkg/fuzzer: display hints job info This will let us gain even more insight into what the fuzzer is doing. --- prog/hints.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'prog') diff --git a/prog/hints.go b/prog/hints.go index c054b9852..a02d2d123 100644 --- a/prog/hints.go +++ b/prog/hints.go @@ -65,6 +65,16 @@ func (m CompMap) String() string { return buf.String() } +func (m CompMap) Len() int { + var count int + for _, nested := range m { + for _, nested2 := range nested { + count += len(nested2) + } + } + return count +} + // InplaceIntersect() only leaves the value pairs that are also present in other. func (m CompMap) InplaceIntersect(other CompMap) { for val1, nested := range m { -- cgit mrf-deployment