60 #ifndef prof_MetricDesc 61 #define prof_MetricDesc 125 std::string nm = (
nameBase) ? nameBase :
"";
188 {
return new ADesc(*
this); }
219 static const std::string&
487 dump(std::ostream& os = std::cerr)
const 493 virtual std::ostream&
494 dumpMe(std::ostream& os = std::cerr)
const;
596 uint64_t
period,
bool isUnitsEvents,
597 const char* profName,
const char* profRelId,
598 const char* profType,
601 :
ADesc(nameBase, description,
604 m_isUnitsEvents(isUnitsEvents),
605 m_profName(profName), m_profileRelId(profRelId), m_profileType(profType)
609 uint64_t
period,
bool isUnitsEvents,
610 const std::string& profName,
const std::string& profRelId,
611 const std::string& profType,
614 :
ADesc(nameBase, description,
617 m_isUnitsEvents(isUnitsEvents),
618 m_profName(profName), m_profileRelId(profRelId), m_profileType(profType)
626 m_period(x.m_period), m_flags(x.m_flags),
627 m_isUnitsEvents(x.m_isUnitsEvents),
628 m_profName(x.m_profName), m_profileRelId(x.m_profileRelId),
629 m_profileType(x.m_profileType)
677 {
return m_isUnitsEvents; }
681 { m_isUnitsEvents = isUnitsEvents; }
691 {
return m_profName; }
695 { m_profName = profName; }
704 {
return m_profileRelId; }
708 { m_profileRelId = profileRelId; }
714 {
return m_profileType; }
718 { m_profileType = profileType; }
731 virtual std::ostream&
732 dumpMe(std::ostream& os = std::cerr)
const;
768 :
ADesc(nameBase, description,
777 :
ADesc(nameBase, description,
829 virtual std::ostream&
830 dumpMe(std::ostream& os = std::cerr)
const;
850 :
ADesc(nameBase, description,
859 :
ADesc(nameBase, description,
912 virtual std::ostream&
913 dumpMe(std::ostream& os = std::cerr)
const;
const std::string & profileName() const
Metric::AExpr * expr() const
virtual SampledDesc * clone() const
enum SamplingType_e m_sampling_type
void partner(ADesc *partner)
DerivedIncrDesc(const DerivedIncrDesc &x)
void namePfx(const char *x)
const std::string & nameSfx() const
static ADescTy fromHPCRunMetricValTy(MetricFlags_ValTy_t ty)
std::string namePfxBaseSfx() const
SamplingType_t sampling_type() const
static MetricFlags_ValTy_t toHPCRunMetricValTy(ADescTy ty)
static const uint id_NULL
void isMultiplexed(bool isMultiplexedEvent)
static const char * ADescTyToXMLString(ADescTy type)
virtual std::string toString() const
SampledDesc(const SampledDesc &x)
void nameFromString(const std::string &x)
ADesc(const char *nameBase, const char *description, bool isVisible=true, bool isSortKey=false, bool doDispPercent=true, bool isPercent=false)
const std::string & profileRelId() const
const char * DIAG_Unimplemented
std::vector< ADesc * > ADescVec
static ADescTy stringToADescTy(const std::string &x)
virtual DerivedDesc * clone() const
void namePfx(const std::string &x)
ADesc & operator=(const ADesc &x)
std::string m_profileRelId
const hpcrun_metricFlags_t hpcrun_metricFlags_NULL
static const std::string s_nameExcl
SampledDesc(const std::string &nameBase, const std::string &description, uint64_t period, bool isUnitsEvents, const std::string &profName, const std::string &profRelId, const std::string &profType, bool isVisible=true, bool isSortKey=false, bool doDispPercent=true, bool isPercent=false)
bool doDispPercent() const
SampledDesc(const char *nameBase, const char *description, uint64_t period, bool isUnitsEvents, const char *profName, const char *profRelId, const char *profType, bool isVisible=true, bool isSortKey=false, bool doDispPercent=true, bool isPercent=false)
DerivedDesc(const DerivedDesc &x)
void profileType(std::string profileType)
void expr(Metric::AExpr *x)
std::string nameToFmt() const
std::string m_profileType
void nameSfx(const std::string &x)
static const char s_nameFmtSegBeg
void sampling_type(SamplingType_t type)
static const char s_nameFmtSegEnd
void num_samples(const uint64_t samples)
Prof::Metric::AExpr * m_expr
const std::string & nameBase() const
std::string nameGeneric() const
void description(const std::string &x)
void flags(hpcrun_metricFlags_t x)
bool isUnitsEvents() const
virtual std::string toValueTyStringXML() const
ComputedTy computedType() const
DerivedIncrDesc(const char *nameBase, const char *description, Metric::AExprIncr *expr, bool isVisible=true, bool isSortKey=false, bool doDispPercent=true, bool isPercent=false)
SampledDesc & operator=(const SampledDesc &x)
uint dbNumMetrics() const
const std::string dbFileGlob() const
virtual ADesc * clone() const
std::string m_description
void expr(Metric::AExprIncr *x)
void description(const char *x)
std::ostream & dump(std::ostream &os=std::cerr) const
virtual std::ostream & dumpMe(std::ostream &os=std::cerr) const
void doDispPercent(bool x)
DerivedIncrDesc(const std::string &nameBase, const std::string &description, Metric::AExprIncr *expr, bool isVisible=true, bool isSortKey=false, bool doDispPercent=true, bool isPercent=false)
uint64_t num_samples() const
DerivedDesc(const std::string &nameBase, const std::string &description, Metric::AExpr *expr, bool isVisible=true, bool isSortKey=false, bool doDispPercent=true, bool isPercent=false)
static const char nameSep
void computedType(ComputedTy x)
void nameBase(const char *x)
enum Prof::Metric::SamplingType_e SamplingType_t
static const char HPCPROF_MetricDBSfx[]
hpcrun_metricFlags_t m_flags
static const std::string s_nameFmtTag
const std::string & namePfx() const
Prof::Metric::AExprIncr * m_expr
void nameBase(const std::string &x)
virtual ~DerivedIncrDesc()
void isUnitsEvents(bool isUnitsEvents)
const std::string & description() const
static const std::string s_nameIncl
void nameSfx(const char *x)
static const std::string s_nameNULL
const std::string & profileType() const
DerivedDesc(const char *nameBase, const char *description, Metric::AExpr *expr, bool isVisible=true, bool isSortKey=false, bool doDispPercent=true, bool isPercent=false)
hpcrun_metricFlags_t flags() const
bool isMultiplexed() const
ADesc(const std::string &nameBase, const std::string &description, bool isVisible=true, bool isSortKey=false, bool doDispPercent=true, bool isPercent=false)
DerivedIncrDesc & operator=(const DerivedIncrDesc &x)
void dbNumMetrics(uint x)
static const std::string & ADescTyToString(ADescTy type)
void profileRelId(std::string profileRelId)
virtual DerivedIncrDesc * clone() const
DerivedDesc & operator=(const DerivedDesc &x)
Metric::AExprIncr * expr() const
void periodMean(float periodMeanEvent)
void profileName(std::string profName)
std::string namePfxBase() const