
bytes
-- the memory used by the
current MuPAD session
Introduction
bytes(
)
returns the current memory
consumption.
Call(s)
bytes()
Returns
a sequence of three integers.
Related
Functions
rtime
, share
, time
Details
bytes
returns the following three numbers:
- The number of bytes used logically; this is the amount of memory
which is actually used for storing MuPAD data.
- The number of bytes physically allocated by the memory management;
this is the amount of memory MuPAD has allocated from the
operating system. The difference between the physical and the logical
bytes is the amount of memory which has alread been reserved for
further calculations.
- On computers with a virtual memory, the third number is the
constant 2^31 - 1. On other computers such as the Apple
Macintosh, the remaining free space (on the program heap) is
returned.
bytes
is a function of the system kernel.
Example
1
In a freshly started MuPAD session,
bytes
may return the following data on the memory
consumption of the session:
>> bytes()
506584, 717312, 2147483647
Each computation increases the memory usage:
>> int(x, x): bytes()
2040956, 2201624, 2147483647
Changes
Do you have
questions or comments?
Copyright © SciFace Software GmbH & Co. KG
2000