Home | History | Annotate | Download | only in gcc

Lines Matching refs:histogram

23    - Count histogram construction.  This is a histogram analyzing how much
25 from profile feedback. This histogram is complete only with LTO,
31 histogram specifying the most common target. We look up the callgraph
61 /* Entry in the histogram. */
70 /* Histogram of profile values.
71 The histogram is represented as an ordered vector of entries allocated via
75 vec<histogram_entry *> histogram;
76 static object_allocator<histogram_entry> histogram_pool ("IPA histogram");
98 /* Account TIME and SIZE executed COUNT times into HISTOGRAM.
103 vec<histogram_entry *> &histogram,
113 histogram.safe_push (*val);
131 /* Dump HISTOGRAM to FILE. */
134 dump_histogram (FILE *file, vec<histogram_entry *> histogram)
140 fprintf (dump_file, "Histogram:\n");
141 for (i = 0; i < histogram.length (); i++)
143 overall_time += histogram[i]->count * histogram[i]->time;
144 overall_size += histogram[i]->size;
150 for (i = 0; i < histogram.length (); i++)
152 cumulated_time += histogram[i]->count * histogram[i]->time;
153 cumulated_size += histogram[i]->size;
155 (int64_t) histogram[i]->count,
156 histogram[i]->time,
158 histogram[i]->size,
255 /* Collect histogram and speculative target summaries from CFG profiles. */
329 account_time_size (&hashtable, histogram,
333 histogram.qsort (cmp_counts);
372 streamer_write_uhwi_stream (ob->main_stream, histogram.length ());
373 for (i = 0; i < histogram.length (); i++)
375 streamer_write_gcov_count_stream (ob->main_stream, histogram[i]->count);
376 streamer_write_uhwi_stream (ob->main_stream, histogram[i]->time);
377 streamer_write_uhwi_stream (ob->main_stream, histogram[i]->size);
493 /* Deserialize the IPA histogram and speculative targets summary info for LTO.
526 account_time_size (&hashtable, histogram,
537 histogram.qsort (cmp_counts);
774 dump_histogram (dump_file, histogram);
775 for (i = 0; i < (int)histogram.length (); i++)
777 overall_time += histogram[i]->count * histogram[i]->time;
778 overall_size += histogram[i]->size;
788 cumulated += histogram[i]->count * histogram[i]->time;
789 threshold = histogram[i]->count;
798 i < (int)histogram.length () && histogram[i]->count >= threshold;
801 cumulated_time += histogram[i]->count * histogram[i]->time;
802 cumulated_size += histogram[i]->size;
818 histogram.release ();