Add back inferior heap size reporting
I'm sure this was present before, but maybe lost during some refactoring.
This commit is contained in:
parent
60980e2668
commit
45d9b1ad7c
1 changed files with 13 additions and 1 deletions
|
|
@ -137,7 +137,7 @@
|
|||
(assoc-ref stats 'heap-free-size))
|
||||
(expt 2. 20)))
|
||||
(round
|
||||
(/ (assoc-ref (gc-stats) 'heap-size)
|
||||
(/ (assoc-ref stats 'heap-size)
|
||||
(expt 2. 20)))))
|
||||
|
||||
(list (system-test-name system-test)
|
||||
|
|
@ -492,6 +492,18 @@
|
|||
args)
|
||||
#f)))
|
||||
|
||||
(let ((stats (gc-stats)))
|
||||
(simple-format
|
||||
(current-error-port)
|
||||
"inferior heap: ~a MiB used (~a MiB heap)~%"
|
||||
(round
|
||||
(/ (- (assoc-ref stats 'heap-size)
|
||||
(assoc-ref stats 'heap-free-size))
|
||||
(expt 2. 20)))
|
||||
(round
|
||||
(/ (assoc-ref stats 'heap-size)
|
||||
(expt 2. 20)))))
|
||||
|
||||
(vector-map
|
||||
(lambda (_ package)
|
||||
(catch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue