Subject: bug#48847: statprof does not print call counts

From: Tommi Höynälänmaa <[email-masked]>
Date: Sat, 5 Jun 2021 15:27:00 +0300

Guile version: 3.0.7.6-22120-dirty

Statprof profiler does not print call counts even though you specify 
"#:count-calls? #t" in the argument list.

Steps to reproduce:

1. Copy the following program to file test.scm:

---cut here---

(use-modules (statprof))
(statprof (lambda ()
             (map 1+ (iota 1000000))
             #f)
       #:count-calls? #t)

---cut here---

2. Run command "guile -s test.scm".

Expected output:

The program should print profiling output with the call counts.

Actual output:

The profiling output is printed but the call counts are not.

      - Tommi Höynälänmaa