7!:0 y |
Current. Space currently in use. |
|
7!:1 y |
Session. Total space used since start of session. |
|
7!:2 y |
Execute. Space required to execute sentence y.
For example:
7!:2 ',/x' [ x=: 3000 2 5$'kerygmatic'
33888
|
7!:3 y |
Free Space. Information on the state of the J
memory manager, currently a 2-column table of the block sizes
and number of free blocks for each size.
The definition of the result of 7!:3 ,
as well as the availability of 7!:3 itself,
are subject to change. For example:
7!:3 ''
32 950
64 1135
128 554
256 157
512 74
1024 40
2048 7
4096 14
8192 1
16384 1
32768 1
|
7!:4 y |
Release Space. Release unused memory from the J memory manager.
Use of 7!:4 can have detrimental performance effects
and such use is expected to be required only rarely.
The definition of the effects of 7!:4 , as well
as the availability of 7!:4 itself, are subject to change.
7!:4 currently (J 4.05) has no effect.
|
|
7!:5 y |
Space. The space in bytes needed by the named
objects y . For example:
Hilbert=: % @: >: @: (+/~) @: i.
7!:5 <'Hilbert'
896
7!:5 <'name_without_value'
|value error: name_without_value
| 7!:5<'name_without_value'
sp=: 3 : '7!:5 <''y.'''
sp 'chiaroscuro'
64
sp i.1000
4096
sp o.i.1000
8192
x=: o.y=: i.1000
7!:5 ;:'x y Hilbert'
8192 4096 896
|
See also