60 #ifndef prof_Prof_CallPath_Profile_hpp 61 #define prof_Prof_CallPath_Profile_hpp 85 #include "../binutils/SimpleSymbolsFactories.hpp" 124 {
m_name = (x) ? x :
""; }
151 if (!directory.empty()) {
295 make(
const char* fnm,
uint rFlags, FILE* outfs);
306 std::string ctxtStr,
const char* filename, FILE* outfs);
311 std::string ctxtStr,
const char* filename, FILE* outfs);
315 const metric_tbl_t& metricTbl,
316 std::string ctxtStr, FILE* outfs);
340 uint oFlags,
const char* pfx =
"")
const;
351 dump(std::ostream& os = std::cerr)
const;
367 merge_fixCCT(
const std::vector<LoadMap::MergeEffect>* mrgEffects);
void copyDirectory(const StringSet &rhs)
static int fmt_cct_fwrite(const Profile &prof, FILE *fs, uint wFlags)
void structure(Prof::Struct::Tree *x)
void isMetricMgrVirtual(bool x)
uint64_t m_measurementGranularity
double fmtVersion() const
static const char * FmtEpoch_NV_virtualMetrics
Profile(const std::string name)
static int fmt_epoch_fread(Profile *&prof, FILE *infs, uint rFlags, const hpcrun_fmt_hdr_t &hdr, std::string ctxtStr, const char *filename, FILE *outfs)
static int fmt_cct_fread(Profile &prof, FILE *infs, uint rFlags, const metric_tbl_t &metricTbl, std::string ctxtStr, FILE *outfs)
std::list< MergeEffect > MergeEffectList
std::string m_traceFileName
string dirname(const char *fName)
const StringSet & traceFileNameSet() const
std::ostream & dump(std::ostream &os=std::cerr) const
std::ostream & writeXML_hdr(std::ostream &os, uint metricBeg, uint metricEnd, uint oFlags, const char *pfx="") const
static int fmt_epoch_fwrite(const Profile &prof, FILE *outfs, uint wFlags)
Metric::Mgr * metricMgr()
uint merge(Profile &y, int mergeTy, uint mrgFlag=0)
const LoadMap * loadmap() const
std::map< int, Prof::CCT::ANode * > CCTIdToCCTNodeMap
bool m_isMetricMgrVirtual
void name(const std::string &x)
static int fmt_fwrite(const Profile &prof, FILE *outfs, uint wFlags)
static const int StructMetricIdFlg
const Metric::Mgr * metricMgr() const
void disable_redundancy(bool flag)
Prof::Struct::Tree * structure() const
void metricMgr(Metric::Mgr *mMgr)
StringSet & directorySet()
static Profile * make(uint rFlags)
StringSet m_traceFileNameSet
uint mergeMetrics(Profile &y, int mergeTy, uint &x_newMetricBegIdx)
std::ostream & writeXML_hdr(std::ostream &os, uint oFlags=0, const char *pfx="") const
void canonicalize(uint rFlags=0)
StringSet & traceFileNameSet()
void addDirectory(std::string filename)
static int fmt_fread(Profile *&prof, FILE *infs, uint rFlags, std::string ctxtStr, const char *filename, FILE *outfs)
void merge_fixCCT(const std::vector< LoadMap::MergeEffect > *mrgEffects)
void merge_fixTrace(const CCT::MergeEffectList *mrgEffects)
const std::string & name() const
std::string m_profileFileName
bool isMetricMgrVirtual() const
Prof::Struct::Tree * m_structure