60 #ifndef DerivedProfile_H 61 #define DerivedProfile_H 132 metricVec.push_back(const_cast<DerivedProfileMetric*>(m));
137 void Dump(std::ostream& o = std::cerr);
174 bool IsValid()
const {
return it != p.metricVec.end(); }
175 bool IsEmpty()
const {
return it == p.metricVec.end(); }
178 void Reset() { it = p.metricVec.begin(); }
218 const std::string&
GetName()
const {
return name; }
224 void SetName(
const std::string& s) { name = s; }
247 VMA oppc = mset->GetISA()->convertVMAToOpVMA(pc, opIndex);
248 PCSetIt it = pcset->find(oppc);
249 return (it != pcset->end());
251 return (mset->DataExists(pc, opIndex) >= 0);
255 DIAG_Assert(pcset,
"");
256 VMA oppc = mset->GetISA()->convertVMAToOpVMA(pc, opIndex);
260 void Dump(std::ostream& o = std::cerr);
DerivedProfileMetric & operator=(const DerivedProfileMetric &m)
unsigned int GetNumMetrics() const
DerivedProfile & operator=(const DerivedProfile &p)
void Dump(std::ostream &o=std::cerr)
const std::string & GetNativeName() const
void SetNumMetrics(unsigned int sz)
const std::string & GetDescription() const
void SetMetric(unsigned int i, const DerivedProfileMetric *m)
DerivedProfileMetricList::const_iterator DerivedProfileMetricListCIt
PCProfileMetricSet * mset
const std::string & GetName() const
const PCProfileMetricSet * GetMetricSet() const
void Create(const PCProfile *pcprof_, const PCProfileFilterList *filtlist)
DerivedProfileMetricVec metricVec
void MakeDerivedPCSetCoterminousWithPCSet()
DerivedProfileMetric * Current() const
void SetDescription(const char *s)
const PCProfile * GetPCProfile() const
virtual ~DerivedProfile()
std::vector< DerivedProfileMetric * > DerivedProfileMetricVec
unsigned short int ushort
DerivedProfileMetricVec::iterator DerivedProfileMetricVecIt
const DerivedProfileMetric * GetMetric(unsigned int i) const
void InsertPC(VMA pc, ushort opIndex)
void SetName(const std::string &s)
DerivedProfile_MetricIterator & operator=(const DerivedProfile_MetricIterator &x)
DerivedProfileMetricList::iterator DerivedProfileMetricListIt
DerivedProfile(const DerivedProfile &p)
DerivedProfileMetricVecCIt it
friend class DerivedProfile_MetricIterator
virtual ~DerivedProfile_MetricIterator()
bool FindPC(VMA pc, ushort opIndex)
void SetName(const char *s)
void AddMetric(const DerivedProfileMetric *m)
void SetNativeName(const std::string &s)
void SetNativeName(const char *s)
DerivedProfileMetricVec::const_iterator DerivedProfileMetricVecCIt
DerivedProfileMetric(const DerivedProfileMetric &m)
std::list< DerivedProfileMetric * > DerivedProfileMetricList
const PCSet * GetPCSet() const
DerivedProfile_MetricIterator(const DerivedProfile &x)
void SetDescription(const std::string &s)
void SetMetricSet(const PCProfileMetricSet *s)