Merged code-gc, data-gc primitives into a gc primitive
parent
b2cb88f497
commit
b3a41fd796
|
@ -10,7 +10,7 @@ CLASS: {
|
|||
"foo:"
|
||||
"void"
|
||||
{ "id" "SEL" "NSRect" }
|
||||
[ data-gc "x" set 2drop ]
|
||||
[ gc "x" set 2drop ]
|
||||
} ;
|
||||
|
||||
: test-foo
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue