48 std::stringstream tmp1;
49 tmp1 <<
"\"processor-" << p <<
"\"";
51 std::stringstream tmp2;
52 tmp2 <<
"Memory per processor " << p;
56 if (
mode_m == std::ios::app )
61 std::string dateStr(simtimer.
date());
62 std::string timeStr(simtimer.
time());
67 ss <<
"Memory statistics '"
69 << dateStr <<
"" << timeStr;
89 double pathLength = beam->
get_sPos();
102 for (
int p = 0; p < nProcs; ++p) {
108 for (
int p = 0; p < nProcs; p++) {
109 std::stringstream ss;
110 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