aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-prof.h
diff options
context:
space:
mode:
authorMartin Liska <marxin.liska@gmail.com>2013-11-11 23:21:02 +0000
committerMartin Liska <marxin@gcc.gnu.org>2013-11-11 23:21:02 +0000
commit86ce5d2fc19438f92afcba1273153071eab48da4 (patch)
tree91cab9d80f43cc346699b11a23a3f3458b7ab15e /gcc/value-prof.h
parent9544822809268ed981b10d31efd6225361ba537b (diff)
downloadgcc-86ce5d2fc19438f92afcba1273153071eab48da4.zip
gcc-86ce5d2fc19438f92afcba1273153071eab48da4.tar.gz
gcc-86ce5d2fc19438f92afcba1273153071eab48da4.tar.bz2
Time profiler introduced.
Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r204690
Diffstat (limited to 'gcc/value-prof.h')
-rw-r--r--gcc/value-prof.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/value-prof.h b/gcc/value-prof.h
index 57f249d..ef77af4 100644
--- a/gcc/value-prof.h
+++ b/gcc/value-prof.h
@@ -34,6 +34,7 @@ enum hist_type
called in indirect call */
HIST_TYPE_AVERAGE, /* Compute average value (sum of all values). */
HIST_TYPE_IOR, /* Used to compute expected alignment. */
+ HIST_TYPE_TIME_PROFILE, /* Used for time profile */
HIST_TYPE_MAX
};
@@ -54,6 +55,7 @@ struct histogram_value_t
} hvalue;
enum hist_type type; /* Type of information to measure. */
unsigned n_counters; /* Number of required counters. */
+ struct function *fun;
union
{
struct
@@ -97,6 +99,8 @@ extern void gimple_gen_pow2_profiler (histogram_value, unsigned, unsigned);
extern void gimple_gen_one_value_profiler (histogram_value, unsigned, unsigned);
extern void gimple_gen_ic_profiler (histogram_value, unsigned, unsigned);
extern void gimple_gen_ic_func_profiler (void);
+extern void gimple_gen_time_profiler (unsigned, unsigned,
+ gimple_stmt_iterator &);
extern void gimple_gen_const_delta_profiler (histogram_value,
unsigned, unsigned);
extern void gimple_gen_average_profiler (histogram_value, unsigned, unsigned);