Lines Matching refs:HistoEntry
69 class HistoEntry: public ResourceObj {
75 HistoEntry(int index, int count) { _index = index; _count = count; }
79 static int compare(HistoEntry** x, HistoEntry** y) { return (*x)->count() - (*y)->count(); }
85 static GrowableArray<HistoEntry*>* sorted_array(int* array, int length) {
86 GrowableArray<HistoEntry*>* a = new GrowableArray<HistoEntry*>(length);
88 while (i-- > 0) a->append(new HistoEntry(i, array[i]));
89 a->sort(HistoEntry::compare);
94 static int total_count(GrowableArray<HistoEntry*>* profile) {
120 GrowableArray<HistoEntry*>* profile = sorted_array(_counters, Bytecodes::number_of_codes);
131 HistoEntry* e = profile->at(i);
162 GrowableArray<HistoEntry*>* profile = sorted_array(_counters, number_of_pairs);
173 HistoEntry* e = profile->at(i);