81 metricVec.reserve(16);
87 for (
unsigned int i = 0; i < GetSz(); i++) {
97 for (
unsigned int i = 0; i < GetSz(); i++) {
111 for (
unsigned int i = 0; i < GetSz(); i++) {
113 if ( (*filter)(m) ) {
123 o <<
"'PCProfileMetricSet' --\n";
124 o <<
" vec size: " << GetSz() <<
"\n";
125 for (
unsigned int i = 0; i < GetSz(); i++) {
126 metricVec[i]->dump(o);
159 pcVec.push_back(oppc);
165 o <<
"'PCProfile' --\n";
189 for (
ulong i = 0; i <
vec.size(); i++) {
198 o <<
"'PCProfileVec' --\n";
199 o <<
" datum=" <<
datum << endl;
201 for (
unsigned int i = 0; i <
vec.size(); i++) {
202 if (i != 0) { o <<
", "; }
std::vector< PCProfileDatum > vec
virtual VMA convertVMAToOpVMA(VMA vma, ushort GCC_ATTR_UNUSED opIndex) const
PCProfileDatum Find(VMA pc, ushort opIndex) const
void dump(std::ostream &o=std::cerr)
PCProfileMetricSet * Filter(MetricFilter *filter) const
void Add(const PCProfileMetric *m)
PCProfileMetricSet(ISA *isa_, unsigned int sz=16)
void dump(std::ostream &o=std::cerr)
unsigned short int ushort
int DataExists(VMA pc, ushort opIndex) const
void dump(std::ostream &o=std::cerr)
virtual ~PCProfileMetricSet()
PCProfile(ISA *isa_, unsigned int sz=16)
void AddPC(VMA pc, ushort opIndex)
#define PCProfileDatum_NIL