#include <Proto_MemInfo.H>
|
typedef std::pair< size_t, size_t > | pairType |
|
◆ pairType
◆ addElem()
void Proto::traceInfo::addElem |
( |
size_t |
a_currentSize | ) |
|
|
inline |
insert function
insert an element in m_info
- Parameters
-
a_currentSize | is 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
-
file | is the txt file where we write the trace |
◆ size()
size_t Proto::traceInfo::size |
( |
| ) |
|
|
inline |
accessor function
Access to the component size
◆ 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: