GCC Middle and Back End API Reference
|
Data Structures | |
struct | statistics_counter_s |
struct | stats_counter_hasher |
Typedefs | |
typedef struct statistics_counter_s | statistics_counter_t |
typedef hash_table < stats_counter_hasher > | stats_counter_table_type |
Functions | |
static stats_counter_table_type | curr_statistics_hash () |
int | statistics_fini_pass_1 (statistics_counter_t **slot, void *data) |
int | statistics_fini_pass_2 (statistics_counter_t **slot, void *data) |
int | statistics_fini_pass_3 (statistics_counter_t **slot, void *data) |
void | statistics_fini_pass () |
int | statistics_fini_1 () |
void | statistics_fini () |
void | statistics_early_init () |
void | statistics_init () |
static statistics_counter_t * | lookup_or_add_counter (stats_counter_table_type hash, const char *id, int val, bool histogram_p) |
void | statistics_counter_event () |
void | statistics_histogram_event () |
Variables | |
static int | statistics_dump_nr |
static int | statistics_dump_flags |
static FILE * | statistics_dump_file |
static stats_counter_table_type * | statistics_hashes |
static unsigned | nr_statistics_hashes |
typedef struct statistics_counter_s statistics_counter_t |
Statistics entry. A integer counter associated to a string ID and value.
|
static |
Return the current hashtable to be used for recording or printing statistics.
References memset(), and nr_statistics_hashes.
Referenced by statistics_fini_pass_3().
|
static |
Lookup or add a statistics counter in the hashtable HASH with ID, VAL and HISTOGRAM_P.
void statistics_counter_event | ( | ) |
Add statistics information about event ID in function FN. This will increment the counter associated with ID by INCR. It will also dump the event to the global statistics file if requested.
Referenced by find_switch_asserts().
void statistics_early_init | ( | void | ) |
Register the statistics dump file.
void statistics_fini | ( | void | ) |
Finish the statistics and dump summary information.
Referenced by lang_dependent_init_target().
int statistics_fini_1 | ( | ) |
Helper for printing summary information.
void statistics_fini_pass | ( | void | ) |
Dump the current statistics incrementally.
int statistics_fini_pass_1 | ( | statistics_counter_t ** | slot, |
void * | data | ||
) |
Helper for statistics_fini_pass. Print the counter difference since the last dump for the pass dump files.
int statistics_fini_pass_2 | ( | statistics_counter_t ** | slot, |
void * | data | ||
) |
Helper for statistics_fini_pass. Print the counter difference since the last dump for the statistics dump.
int statistics_fini_pass_3 | ( | statistics_counter_t ** | slot, |
void * | data | ||
) |
Helper for statistics_fini_pass, reset the counters.
References curr_statistics_hash(), current_pass, dump_file, dump_flags, and opt_pass::static_pass_number.
void statistics_histogram_event | ( | ) |
Add statistics information about event ID in function FN with the histogram value VAL. It will dump the event to the global statistics file if requested.
void statistics_init | ( | void | ) |
Init the statistics.
|
static |
Referenced by curr_statistics_hash().
|
static |
|
static |
|
static |
@verbatim
Optimization statistics functions. Copyright (C) 2008-2013 Free Software Foundation, Inc. Contributed by Richard Guenther rguen ther @suse .de
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.
|
static |
Array of statistic hashes, indexed by pass id.