100 Create(pcprof_, filtlist);
123 if (filtlist ==
NULL) {
133 PCProfileFilterList::const_iterator it = filtlist->begin();
134 for (
unsigned int i = 0; it != filtlist->end(); ++it, ++i) {
155 if (filtlist ==
NULL) {
167 VMA opvma = it.Current();
169 VMA vma = binutils::LM::isa->convertOpVMAToVMA(opvma, opIndex);
172 PCProfileFilterList::const_iterator fIt = filtlist->begin();
173 for (
unsigned int i = 0; fIt != filtlist->end(); ++fIt, ++i) {
182 if (rawMSet->
DataExists(vma, opIndex) >= 0 && (*pcfilt)(vma, opIndex)) {
194 o <<
"'DerivedProfile' --\n";
199 o <<
"'Metrics' --\n";
250 o <<
"'DerivedProfileMetric' --\n";
251 o <<
" name: " << name <<
"\n";
252 o <<
" description: " << description <<
"\n";
253 o <<
" period: " <<
period <<
"\n";
269 if (s->
GetSz() == 0) {
return true; }
285 if (s->
GetSz() == 0) {
288 return (*s)[0]->GetPeriod();
297 for (
unsigned int i = 0; it.
IsValid(); ++it, ++i) {
299 if (i != 0) { nm +=
"+"; }
300 nm +=
"[" + m->
GetName() +
"]";
303 if (nm.empty()) { nm =
"[no-matching-metrics]"; }
virtual ~DerivedProfileMetric()
PCFilter * GetPCFilter() const
void Dump(std::ostream &o=std::cerr)
DerivedProfileMetric(const PCProfileMetricSet *s=NULL)
PCProfileMetricSet * Filter(MetricFilter *filter) const
void Dump(std::ostream &o=std::cerr)
void SetNumMetrics(unsigned int sz)
void SetMetric(unsigned int i, const DerivedProfileMetric *m)
void Add(const PCProfileMetric *m)
unsigned int GetSz() const
unsigned int GetNumMetrics() const
const PCProfileMetricSet * GetMetricSet() const
void Create(const PCProfile *pcprof_, const PCProfileFilterList *filtlist)
DerivedProfileMetricVec metricVec
void MakeDerivedPCSetCoterminousWithPCSet()
void SetDescription(const char *s)
MetricFilter * GetMetricFilter() const
virtual ~DerivedProfile()
unsigned short int ushort
const DerivedProfileMetric * GetMetric(unsigned int i) const
void InsertPC(VMA pc, ushort opIndex)
const std::string & GetDescription() const
const std::string & GetDescription() const
void Ctor(const PCProfileMetricSet *s)
PCProfileMetric * Current() const
string GetNativeName(const PCProfileMetricSet *s)
int DataExists(VMA pc, ushort opIndex) const
static ulong GetPeriod(const PCProfileMetricSet *s)
const std::string & GetName() const
void SetName(const char *s)
void SetNativeName(const char *s)
static bool VerifyPeriod(const PCProfileMetricSet *s)
const PCProfileMetric * GetMetric(unsigned int i) const
const std::string & GetName() const