XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions
memory_usage.cpp File Reference
#include "memory_usage.hpp"
#include "globals.hpp"
#include "sys/types.h"
#include "sys/sysinfo.h"
Include dependency graph for memory_usage.cpp:

Classes

struct  NetworkMemoryStats
 

Functions

int get_local_cpu_mem_usage (double &total_db, double &free_db)
 
int get_local_gpu_mem_usage (double &total_db, double &free_db)
 
NetworkMemoryStats get_cpu_mem_stats ()
 
NetworkMemoryStats get_gpu_mem_stats ()
 
void print_mem_usage (const std::string &str)
 
void print_mem_usage (const std::string &str, int comm_rank)
 

Function Documentation

NetworkMemoryStats get_cpu_mem_stats ( )

Here is the call graph for this function:

Here is the caller graph for this function:

NetworkMemoryStats get_gpu_mem_stats ( )

Here is the call graph for this function:

Here is the caller graph for this function:

int get_local_cpu_mem_usage ( double &  total_db,
double &  free_db 
)

Here is the caller graph for this function:

int get_local_gpu_mem_usage ( double &  total_db,
double &  free_db 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void print_mem_usage ( const std::string &  str)

Here is the call graph for this function:

Here is the caller graph for this function:

void print_mem_usage ( const std::string &  str,
int  comm_rank 
)

Here is the call graph for this function: