Merged code-gc, data-gc primitives into a gc primitive

db4
Slava Pestov 2008-04-05 04:26:46 -05:00
parent b2cb88f497
commit b3a41fd796
3 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,7 @@ CLASS: {
"foo:"
"void"
{ "id" "SEL" "NSRect" }
[ data-gc "x" set 2drop ]
[ gc "x" set 2drop ]
} ;
: test-foo

View File

@ -15,8 +15,7 @@ ARTICLE: "tools.memory" "Object memory tools"
"You can check an object's the heap memory usage:"
{ $subsection size }
"The garbage collector can be invoked manually:"
{ $subsection data-gc }
{ $subsection code-gc }
{ $subsection gc }
{ $see-also "images" } ;
ABOUT: "tools.memory"

View File

@ -8,7 +8,7 @@ alien tools.profiler.private sequences ;
\ length profile-counter =
] unit-test
[ ] [ [ 10 [ data-gc ] times ] profile ] unit-test
[ ] [ [ 10 [ gc ] times ] profile ] unit-test
[ ] [ [ 1000 sleep ] profile ] unit-test