From: Taylor R Campbell Date: Sun, 6 Jan 2019 04:14:15 +0000 (+0000) Subject: Can't see why I chose to discard recent samples a decade ago. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=2eea6347855521887e4309707b4c8f849c152888;p=mit-scheme.git Can't see why I chose to discard recent samples a decade ago. (cherry picked from commit c8e355ff3c0666d79a4c4863fd0a2c72ca34669a) --- diff --git a/src/runtime/stack-sample.scm b/src/runtime/stack-sample.scm index 834f4469f..3e8c5f799 100644 --- a/src/runtime/stack-sample.scm +++ b/src/runtime/stack-sample.scm @@ -244,7 +244,7 @@ (define (record-waiting profile stack-frame time-stamp) (let ((entry (intern-entry profile stack-frame))) - (if (and entry (not (eqv? time-stamp (entry.time-stamp entry)))) + (if entry (begin (set-entry.waiting-count! entry (+ 1 (entry.waiting-count entry))) (set-entry.time-stamp! entry time-stamp)))))