Proto  3.2
Public Types | Public Member Functions | Private Attributes | List of all members
Proto::traceInfo Class Reference

#include <Proto_MemInfo.H>

Public Types

typedef std::pair< size_t, size_t > pairType
 

Public Member Functions

void addElem (size_t a_currentSize)
 insert function More...
 
void writeFile (std::ofstream &file)
 output function More...
 
size_t size ()
 accessor function More...
 

Private Attributes

size_t m_maxSize = 0
 store the maximum memory usage More...
 
std::vector< pairTypem_info
 store a vector of current and maximum memory usage More...
 

Member Typedef Documentation

◆ pairType

typedef std::pair<size_t,size_t> Proto::traceInfo::pairType

Member Function Documentation

◆ addElem()

void Proto::traceInfo::addElem ( size_t  a_currentSize)
inline

insert function

insert an element in m_info

Parameters
a_currentSizeis the current memory size usage given with cudaGetMemInfo (device) or rusage (host)

◆ writeFile()

void Proto::traceInfo::writeFile ( std::ofstream &  file)
inline

output function

All information are written in a txt file

Parameters
fileis the txt file where we write the trace

◆ size()

size_t Proto::traceInfo::size ( )
inline

accessor function

Access to the component size

Member Data Documentation

◆ m_maxSize

size_t Proto::traceInfo::m_maxSize = 0
private

store the maximum memory usage

◆ m_info

std::vector<pairType> Proto::traceInfo::m_info
private

store a vector of current and maximum memory usage


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