60 #ifndef PCProfileMetric_H 61 #define PCProfileMetric_H 70 #ifdef NO_STD_CHEADERS 88 #define PCProfileDatum_NIL 0 161 PCToPCProfileDatumMapCIt it =
map.find(oppc);
163 else {
return ((*it).second); }
177 void dump(std::ostream& o = std::cerr);
198 PCToPCProfileDatumMap
map;
221 bool IsValid()
const {
return it != m.map.end(); }
222 bool IsEmpty()
const {
return it == m.map.end(); }
225 void Reset() { it = m.map.begin(); }
virtual VMA convertVMAToOpVMA(VMA vma, ushort GCC_ATTR_UNUSED opIndex) const
PCProfileDatum Find(VMA pc, ushort opIndex) const
void SetDescription(const std::string &s)
void Insert(VMA pc, ushort opIndex, PCProfileDatum &d)
void dump(std::ostream &o=std::cerr)
PCProfileMetric & operator=(const PCProfileMetric &m)
PCProfileMetric(ISA *isa_)
PCToPCProfileDatumMap::iterator PCToPCProfileDatumMapIt
PCToPCProfileDatumMap map
unsigned int GetSz() const
PCProfileMetric(const PCProfileMetric &m)
PCSet::const_iterator PCSetCIt
const PCProfileMetric & m
unsigned short int ushort
PCToPCProfileDatumMap::value_type PCToPCProfileDatumMapVal
PCSet * Filter(PCFilter *filter) const
void SetTotalCount(PCProfileDatum d)
const std::string & GetDescription() const
PCProfileMetric_MapIterator & operator=(const PCProfileMetric_MapIterator &x)
void SetName(const char *s)
void SetDescription(const char *s)
PCToPCProfileDatumMap::const_iterator PCToPCProfileDatumMapCIt
void SetName(const std::string &s)
PCProfileDatum GetTotalCount() const
std::map< VMA, PCProfileDatum > PCToPCProfileDatumMap
virtual ~PCProfileMetric()
virtual ~PCProfileMetric_MapIterator()
PCProfileMetric_MapIterator(const PCProfileMetric &x)
PCProfileDatum CurrentTarget()
PCProfileMetric::PCToPCProfileDatumMapCIt it
friend class PCProfileMetric_MapIterator
#define PCProfileDatum_NIL
const std::string & GetName() const