Function ndpi_get_tot_allocated_memory

Function Documentation

u_int32_t ndpi_get_tot_allocated_memory(void)

Get the total amount of memory allocated by nDPI. This tracks memory allocated via ndpi_malloc(), ndpi_calloc(), ndpi_realloc(), ndpi_strdup(), and ndpi_strndup() (but not flow allocations).

Returns:

Total number of bytes currently allocated