Log heap size when computing system tests
This commit is contained in:
parent
1e2826e095
commit
95064d39a3
1 changed files with 12 additions and 0 deletions
|
|
@ -382,6 +382,18 @@ WHERE job_id = $1")
|
||||||
`(lambda (store)
|
`(lambda (store)
|
||||||
(map
|
(map
|
||||||
(lambda (system-test)
|
(lambda (system-test)
|
||||||
|
(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 (gc-stats) 'heap-size)
|
||||||
|
(expt 2. 20)))))
|
||||||
|
|
||||||
(list (system-test-name system-test)
|
(list (system-test-name system-test)
|
||||||
(system-test-description system-test)
|
(system-test-description system-test)
|
||||||
(filter-map
|
(filter-map
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue