diff --git a/internal/cachegrind/parser.go b/internal/cachegrind/parser.go index e54e973..4b40b66 100644 --- a/internal/cachegrind/parser.go +++ b/internal/cachegrind/parser.go @@ -121,6 +121,7 @@ func Parse(r io.Reader) (*Profile, error) { pendingCallee = fnTable[alias] case strings.HasPrefix(line, "calls="): + pendingCallCount = 0 parts := strings.Fields(line[6:]) if len(parts) > 0 { pendingCallCount, _ = strconv.ParseInt(parts[0], 10, 64)