Skip to main content

ec_memory_get_total_allocated

Last updated March 2020

Name

ec_memory_get_total_allocated — Return the total memory allocated via ec_malloc and related functions

Synopsis

#include "ec_malloc.h"

| uint64_t **ec_memory_get_total_allocated** ( | ); |   |

void;

Description

**Configuration Change. ** This feature is available starting from Momentum 3.0.18.

Return the total memory allocated via ec_mallocec_malloc and related functions.

In earlier releases, this function was known as get_rss(), which was a misleading name, as the value returned from this function includes only the memory allocated via ec_malloc, ec_malloc_size and ec_realloc.

Return Value

This function returns void.

Threading

You can call this function in any thread.

See Also

Was this page helpful?