66 #define __STDC_FORMAT_MACROS 114 if (!filenm) {
return; }
121 DIAG_EMsg(
"While reading '" << filenm <<
"'...");
131 if (!filenm) {
return; }
136 DIAG_Throw(
"error opening metric-db file '" << filenm <<
"'");
142 DIAG_Throw(
"error reading metric-db file '" << filenm <<
"'");
147 for (
uint nodeId = 1; nodeId < hdr.
numNodes + 1; ++nodeId) {
148 fprintf(stdout,
"(%6u: ", nodeId);
153 DIAG_Throw(
"error reading trace file '" << filenm <<
"'");
155 fprintf(stdout,
"%12g ", mval);
157 fprintf(stdout,
")\n");
163 DIAG_EMsg(
"While reading '" << filenm <<
"'...");
172 if (!filenm) {
return; }
177 DIAG_Throw(
"error opening trace file '" << filenm <<
"'");
184 DIAG_Throw(
"error reading trace file '" << filenm <<
"'");
190 while ( !feof(fs) ) {
197 DIAG_Throw(
"error reading trace file '" << filenm <<
"'");
206 DIAG_EMsg(
"While reading '" << filenm <<
"'...");
215 if (!filenm) {
return; }
222 DIAG_EMsg(
"While reading '" << filenm <<
"'...");
226 prof.
dump(std::cout);
int hpcmetricDB_fmt_hdr_fread(hpcmetricDB_fmt_hdr_t *hdr, FILE *infs)
int hpctrace_fmt_hdr_fprint(hpctrace_fmt_hdr_t *hdr, FILE *fs)
const char * DIAG_Unimplemented
Analysis::Util::ProfType_t getProfileType(const std::string &filenm)
static int hpcfmt_real8_fread(double *val, FILE *infs)
void writeAsText_callpathTrace(const char *filenm)
void openread(const char *filename=NULL)
void writeAsText_callpathMetricDB(const char *filenm)
int hpctrace_fmt_datum_fprint(hpctrace_fmt_datum_t *x, hpctrace_hdr_flags_t flags, FILE *fs)
void dump(std::ostream &o=std::cerr, const char *pre="") const
void writeAsText(const char *filenm)
static Profile * make(uint rFlags)
hpctrace_hdr_flags_t flags
FILE * hpcio_fopen_r(const char *fnm)
int hpctrace_fmt_hdr_fread(hpctrace_fmt_hdr_t *hdr, FILE *infs)
int hpcio_fclose(FILE *fs)
void writeAsText_callpath(const char *filenm)
int hpctrace_fmt_datum_fread(hpctrace_fmt_datum_t *x, hpctrace_hdr_flags_t flags, FILE *fs)
int hpcmetricDB_fmt_hdr_fprint(hpcmetricDB_fmt_hdr_t *hdr, FILE *outfs)
void writeAsText_flat(const char *filenm)