ARRget_alloc_size, ARRget_alloc_size_total


Summary

size_t ARRget_alloc_size (int d_type, size_t lower, size_t upper);

size_t ARRget_alloc_size_total (void);

 

Description

 

ARRget_alloc_size allows reports based on just a single array type and/or within the array size limits.

ARRget_alloc_size_total returns the sum total of the memory size of all arrays currently allocated by the ARR package.

 

Example

 

ARRget_alloc_size(DTYPE_INT, 100, 500)

 

Returns the size in bytes of int arrays that are between 100 (inclusive)

and 500 (exclusive) byes in size. DTYPE_UNSET matches all types

and a limit of zero means all sizes.

 

ARRget_alloc_size(DTYPE_UNSET, 100, 0)

 

returns the sum total of the sizes of all arrays greater or equal to

100 bytes in size.