47 std::stringstream tmp1;
48 tmp1 <<
"\"processor-" << p <<
"\"";
50 std::stringstream tmp2;
51 tmp2 <<
"Memory per processor " << p;
55 if (
mode_m == std::ios::app )
60 std::string dateStr(simtimer.
date());
61 std::string timeStr(simtimer.
time());
66 ss <<
"Memory statistics '"
68 << dateStr <<
"" << timeStr;
88 double pathLength = beam->
get_sPos();
101 for (
int p = 0; p < nProcs; ++p) {
107 for (
int p = 0; p < nProcs; p++) {
108 std::stringstream ss;
109 ss <<
"\"processor-" << p <<
"\"";
std::string getInputFn()
get opals input filename
static OpalData * getInstance()
void write(const PartBunchBase< double, 3 > *beam) override
MemoryWriter(const std::string &fname, bool restart)
void addColumn(const std::string &name, const std::string &type, const std::string &unit, const std::string &desc, std::ios_base::fmtflags flags=std::ios_base::scientific, unsigned short precision=15)
void addColumnValue(const std::string &name, const T &val)
void addDefaultParameters()
void addDescription(const std::string &text, const std::string &content)
void writeHeader()
Write SDDS header.
std::ios_base::openmode mode_m
First write to the statistics output file.
void addInfo(const std::string &mode, const size_t &no_row_counts)
std::string date() const
Return date.
std::string time() const
Return time.
const std::string & getUnit() const
static IpplMemory_p getInstance(Unit unit=Unit::GB, bool reset=true)
double getMemoryUsage(int core) const