2016-05-04 16:47:50 -04:00
|
|
|
USING: arrays math memory namespaces parser sequences tools.memory
|
|
|
|
tools.memory.private tools.test tools.time ;
|
2008-03-01 17:00:45 -05:00
|
|
|
IN: tools.memory.tests
|
2007-09-20 18:09:08 -04:00
|
|
|
|
2015-07-03 12:39:59 -04:00
|
|
|
{ } [ room. ] unit-test
|
|
|
|
{ } [ heap-stats. ] unit-test
|
|
|
|
{ t } [ [ gc gc ] collect-gc-events array? ] unit-test
|
|
|
|
{ } [ gc-events. ] unit-test
|
|
|
|
{ } [ gc-stats. ] unit-test
|
|
|
|
{ } [ gc-summary. ] unit-test
|
|
|
|
{ } [ callback-room. ] unit-test
|
2016-05-04 16:47:50 -04:00
|
|
|
|
|
|
|
! Each gc-event must reclaim something. #659
|
|
|
|
{ f } [
|
|
|
|
[ "resource:basis/tools/memory/memory.factor" run-file ] time
|
|
|
|
gc-events get [ space-reclaimed 0 < ] any?
|
|
|
|
] unit-test
|