Memory pool classes
Memory pool classes
|
|
Object Hierarchy
GObject
╰── GArrowMemoryPool
Includes
#include <arrow-glib/arrow-glib.h>
Functions
garrow_memory_pool_default ()
GArrowMemoryPool *
garrow_memory_pool_default ();
Returns
The process-wide default memory pool.
[transfer full]
Since: 9.0.0
garrow_memory_pool_get_bytes_allocated ()
gint64
garrow_memory_pool_get_bytes_allocated
(GArrowMemoryPool *memory_pool
);
Returns
The number of bytes that were allocated and not yet free’d
through this allocator.
Since: 9.0.0
garrow_memory_pool_get_max_memory ()
gint64
garrow_memory_pool_get_max_memory (GArrowMemoryPool *memory_pool
);
Return peak memory allocation in this memory pool.
Returns
Maximum bytes allocated. If not known (or not implemented),
returns -1.
Since: 9.0.0
garrow_memory_pool_get_backend_name ()
gchar *
garrow_memory_pool_get_backend_name (GArrowMemoryPool *memory_pool
);
Returns
The name of the backend used by this MemoryPool
(e.g. "system" or "jemalloc").
It should be freed with g_free()
when no longer needed.
Since: 9.0.0
Types and Values
GARROW_TYPE_MEMORY_POOL
#define GARROW_TYPE_MEMORY_POOL (garrow_memory_pool_get_type())
struct GArrowMemoryPoolClass
struct GArrowMemoryPoolClass {
GObjectClass parent_class;
};
GArrowMemoryPool
typedef struct _GArrowMemoryPool GArrowMemoryPool;
Property Details
The “memory-pool”
property
“memory-pool” gpointer
The raw arrow::MemoryPool *.
Owner: GArrowMemoryPool
Flags: Write / Construct Only