View source: R/developerAPIS.R
listSharedObjects | R Documentation |
List all shared Objects
listSharedObjects(end = NULL, start = NULL)
end |
the end value of the ID. The default is |
start |
the start value of the ID. The default is |
The parameter start
and end
specify the range of the ID. If not specified, all
IDs will be listed.
On Ubuntu or some other linux systems, the shared objects
can be found in the folder /dev/shm
. The function can find all shared objects
if the folder exists.
On Windows, since there is no easy way to find all shared objects. the function will guess the range of the shared object IDs and search for all IDs within the range. Therefore, if there are too many shared objects(over 4 billions) ,the object id can be out of the searching range and the result may not be complete. Furthermore, there will be no named shared memory in the returned list.
Note that the size in the return value is the true memory size that is reserved for the shared object, so it might be larger than the object size.
A data.frame object with shared object id and size
getLastIndex
, allocateSharedMemory
,
mapSharedMemory
, unmapSharedMemory
,
freeSharedMemory
, hasSharedMemory
, getSharedMemorySize
x <- share(runif(10))
## Automatically determine the search range
listSharedObjects()
## specify the search range
listSharedObjects(start = 10, end = 20)
## Search from 0 to 20
listSharedObjects(20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.