Code_Saturne
CFD tool
Functions
ecs_mem_usage.h File Reference
#include "ecs_def.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BEGIN_C_DECLS void ecs_mem_usage_init (void)
 Initialize memory usage count depending on system. More...
 
void ecs_mem_usage_end (void)
 End memory usage count depending on system. More...
 
int ecs_mem_usage_initialized (void)
 Indicates if ecs_mem_usage_...() functions are initialized. More...
 
size_t ecs_mem_usage_pr_size (void)
 Return current process memory use (in kB) depending on system. More...
 
size_t ecs_mem_usage_max_pr_size (void)
 

Function Documentation

◆ ecs_mem_usage_end()

void ecs_mem_usage_end ( void  )

End memory usage count depending on system.

◆ ecs_mem_usage_init()

BEGIN_C_DECLS void ecs_mem_usage_init ( void  )

Initialize memory usage count depending on system.

This functions checks if it has already been called, so it is safe to call more than once (though it is not thread-safe). Only the first call is effective.

◆ ecs_mem_usage_initialized()

int ecs_mem_usage_initialized ( void  )

Indicates if ecs_mem_usage_...() functions are initialized.

Returns
1 if ecs_mem_usage_init has been called, 0 otherwise.

◆ ecs_mem_usage_max_pr_size()

size_t ecs_mem_usage_max_pr_size ( void  )
Here is the call graph for this function:

◆ ecs_mem_usage_pr_size()

size_t ecs_mem_usage_pr_size ( void  )

Return current process memory use (in kB) depending on system.

If the information is not available (depending on availability of non-portable function calls), 0 is returned.

Here is the call graph for this function: