Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
memory_report.cpp File Reference
#include "common.h"
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include "grid.h"
#include "logger.h"
#include "object_wrapper.h"
#include "memory_report.h"
Include dependency graph for memory_report.cpp:

Go to the source code of this file.

Functions

void report_cell_and_block_counts (const dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid)
uint64_t get_node_free_memory ()
void report_memory_consumption (const dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, double extra_bytes)

Variables

Logger logFile

Function Documentation

◆ get_node_free_memory()

uint64_t get_node_free_memory ( )

Return the amount of free memory on the node in bytes

Definition at line 85 of file memory_report.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ report_cell_and_block_counts()

void report_cell_and_block_counts ( const dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid)

Report spatial cell counts per refinement level as well as velocity cell counts per population into logfile

Definition at line 49 of file memory_report.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ report_memory_consumption()

void report_memory_consumption ( const dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
double extra_bytes )

Measures memory consumption and writes it into logfile. Collective operation on MPI_COMM_WORLD extra_bytes is used for additional buffer for the high water mark, for example when estimating refinement memory usage

Definition at line 118 of file memory_report.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ logFile

Logger logFile
extern

Definition at line 25 of file main.cpp.