tools.memory: fix heap-stats if optimizing compiler is disabled

db4
Slava Pestov 2009-02-16 17:04:58 -06:00
parent 1a434416ac
commit f634b9cf6b
1 changed files with 2 additions and 2 deletions

View File

@ -70,8 +70,8 @@ PRIVATE>
] tabular-output ;
: heap-stats ( -- counts sizes )
H{ } clone H{ } clone
2dup '[ _ _ heap-stat-step ] each-object ;
[ ] instances H{ } clone H{ } clone
[ '[ _ _ heap-stat-step ] each ] 2keep ;
: heap-stats. ( -- )
heap-stats dup keys natural-sort standard-table-style [