#include "config.h"#include "system.h"#include "coretypes.h"#include "tm.h"#include "intl.h"#include "rtl.h"#include "toplev.h"#include "flags.h"#include "timevar.h"#include "timevar.def"

Go to the source code of this file.
Data Types | |
| type | tms |
| type | timevar_def |
| type | timevar_stack_def |
Defines | |
| #define | RUSAGE_SELF 0 |
| #define | TICKS_PER_SECOND 100 |
| #define | GGC_MEM_BOUND (1 << 20) |
| #define | DEFTIMEVAR(identifier__, name__) timevars[identifier__].name = name__; |
Typedefs | |
| typedef int | clock_t |
Functions/Subroutines | |
| static void | get_time (struct timevar_time_def *) |
| static void | timevar_accumulate (struct timevar_time_def *, struct timevar_time_def *, struct timevar_time_def *) |
| void | timevar_init (void) |
| void | timevar_push_1 (timevar_id_t timevar) |
| void | timevar_pop_1 (timevar_id_t timevar) |
| void | timevar_start (timevar_id_t timevar) |
| void | timevar_stop (timevar_id_t timevar) |
| void | timevar_print (FILE *fp) |
| void | print_time (const char *str, long total) |
Variables | |
| bool | timevar_enable |
| size_t | timevar_ggc_mem_total |
| static struct timevar_def | timevars [TIMEVAR_LAST] |
| static struct timevar_stack_def * | stack |
| static struct timevar_stack_def * | unused_stack_instances |
| static struct timevar_time_def | start_time |
| #define GGC_MEM_BOUND (1 << 20) |
| static void get_time | ( | struct timevar_time_def * | now | ) | [static] |
Definition at line 190 of file timevar.c.
References clock, getrusage(), timevar_time_def::ggc_mem, rusage::ru_stime, rusage::ru_utime, RUSAGE_SELF, timevar_time_def::sys, times, timevar_enable, timevar_ggc_mem_total, tms::tms_stime, tms::tms_utime, timeval::tv_sec, timeval::tv_usec, timevar_time_def::user, and timevar_time_def::wall.
| static void timevar_accumulate | ( | struct timevar_time_def * | timer, | |
| struct timevar_time_def * | start_time, | |||
| struct timevar_time_def * | stop_time | |||
| ) | [static] |
Definition at line 222 of file timevar.c.
References timevar_time_def::ggc_mem, timevar_time_def::sys, timevar_time_def::user, and timevar_time_def::wall.
| void timevar_pop_1 | ( | timevar_id_t | timevar | ) |
Definition at line 311 of file timevar.c.
References timevar_def::elapsed, gcc_assert, get_time(), timevar_stack_def::next, start_time, timevar_stack_def::timevar, timevar_accumulate(), and timevars.
Definition at line 384 of file timevar.c.
References _, timevar_def::elapsed, fprintf(), fputs(), get_time(), timevar_time_def::ggc_mem, GGC_MEM_BOUND, int, timevar_def::name, putc(), start_time, timevar_time_def::sys, timevar_stack_def::timevar, timevar_accumulate(), timevar_enable, TIMEVAR_ENABLE, TIMEVAR_LAST, timevars, timevar_def::used, timevar_time_def::user, and timevar_time_def::wall.
| void timevar_push_1 | ( | timevar_id_t | timevar | ) |
Definition at line 264 of file timevar.c.
References timevar_def::elapsed, gcc_assert, get_time(), timevar_stack_def::next, NULL, timevar_def::standalone, start_time, timevar_stack_def::timevar, timevar_accumulate(), timevars, timevar_def::used, xmalloc(), and XNEW.
| void timevar_start | ( | timevar_id_t | timevar | ) |
Definition at line 342 of file timevar.c.
References abort, gcc_assert, get_time(), timevar_def::standalone, timevar_def::start_time, timevar_enable, TIMEVAR_ENABLE, timevars, and timevar_def::used.
| void timevar_stop | ( | timevar_id_t | timevar | ) |
Definition at line 364 of file timevar.c.
References abort, timevar_def::elapsed, gcc_assert, get_time(), timevar_def::standalone, timevar_def::start_time, timevar_accumulate(), timevar_enable, TIMEVAR_ENABLE, and timevars.
struct timevar_stack_def* stack [static] |
struct timevar_time_def start_time [static] |
Definition at line 120 of file timevar.c.
Referenced by get_time(), ggc_alloc_stat(), and ggc_alloc_zone_stat().
struct timevar_def timevars[TIMEVAR_LAST] [static] |
struct timevar_stack_def* unused_stack_instances [static] |
1.5.6