#include <Proto_MemInfo.H>
◆ memInfo()
template<MemType MEMTYPE = MEMTYPE_DEFAULT>
constructor
default constructor
◆ enterInfo()
template<MemType MEMTYPE = MEMTYPE_DEFAULT>
void Proto::memInfo< MEMTYPE >::enterInfo |
( |
std::string |
file, |
|
|
unsigned int |
line, |
|
|
unsigned long int |
dataSize |
|
) |
| |
|
inline |
insert function
Enter information in a 'describeInfo' element element are defined by their location: file + line if the position does not exist, we create it
- Parameters
-
file | is file position for a given Malloc |
line | is line position in the file for a given Malloc |
dataSize | is size for a given Malloc |
References Proto::describeInfo::count, and Proto::describeInfo::dataSize.
◆ enterInfos()
template<MemType MEMTYPE = MEMTYPE_DEFAULT>
insert function
Enter information in a 'describeInfo' element element are defined by their position: file + line if the position does not already exist, we create it
- Parameters
-
position | is the position in the code for a given Malloc |
a_elem | contains the related information for a position in an other mpi process (used with mpi) |
◆ addTracePoint()
template<MemType MEMTYPE = MEMTYPE_DEFAULT>
insert function
add a memory trace point for the device memory
◆ addTracePointHost()
template<MemType MEMTYPE = MEMTYPE_DEFAULT>
insert function
add a memory trace point for the host memory
◆ fexists()
template<MemType MEMTYPE = MEMTYPE_DEFAULT>
check function
check if a file exist. We avoid to rewrite a file when we print de memory trace.
◆ printInfo()
template<MemType MEMTYPE = MEMTYPE_DEFAULT>
◆ getMemInfo()
template<MemType MEMTYPE = MEMTYPE_DEFAULT>
◆ m_info
template<MemType MEMTYPE = MEMTYPE_DEFAULT>
accumulate data size allocations for each malloc position in the code
◆ m_trace
template<MemType MEMTYPE = MEMTYPE_DEFAULT>
store the current and maximum memory footprint for each malloc
The documentation for this class was generated from the following file: