openPMD-api
Public Member Functions | List of all members
openPMD::benchmark::MemoryProfiler Class Reference

The Memory profiler class for profiling purpose. More...

#include <MemoryProfiler.hpp>

Public Member Functions

 MemoryProfiler (int rank, const std::string &tag)
 Simple Memory profiler for linux. More...
 
void Display (const std::string &tag)
 Display virtual memory info. More...
 

Detailed Description

The Memory profiler class for profiling purpose.

Simple Memory usage report that works on linux system

Constructor & Destructor Documentation

◆ MemoryProfiler()

openPMD::benchmark::MemoryProfiler::MemoryProfiler ( int  rank,
const std::string &  tag 
)
inline

Simple Memory profiler for linux.

Parameters
[in]rankMPI rank
[in]tagitem name to measure

Member Function Documentation

◆ Display()

void openPMD::benchmark::MemoryProfiler::Display ( const std::string &  tag)
inline

Display virtual memory info.

Read from /proc/self/status and display the Virtual Memory info at rank 0 to stdout

Parameters
tagitem name to measure

The documentation for this class was generated from the following file: