osprey-gcc-4.2.0/gcc/timevar.c File Reference

#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"

Include dependency graph for timevar.c:

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_defstack
static struct timevar_stack_defunused_stack_instances
static struct timevar_time_def start_time


Define Documentation

#define DEFTIMEVAR ( identifier__,
name__   )     timevars[identifier__].name = name__;

#define GGC_MEM_BOUND   (1 << 20)

Definition at line 125 of file timevar.c.

Referenced by timevar_print().

#define RUSAGE_SELF   0

Definition at line 51 of file timevar.c.

#define TICKS_PER_SECOND   100

Definition at line 65 of file timevar.c.


Typedef Documentation

typedef int clock_t

Definition at line 37 of file timevar.c.


Function Documentation

static void get_time ( struct timevar_time_def now  )  [static]

void print_time ( const char *  str,
long  total 
)

Definition at line 495 of file timevar.c.

References _, all_time, fprintf(), and get_run_time().

static void timevar_accumulate ( struct timevar_time_def timer,
struct timevar_time_def start_time,
struct timevar_time_def stop_time 
) [static]

void timevar_init ( void   ) 

Definition at line 235 of file timevar.c.

References memset, timevar_enable, and timevars.

void timevar_pop_1 ( timevar_id_t  timevar  ) 

void timevar_print ( FILE fp  ) 

void timevar_push_1 ( timevar_id_t  timevar  ) 

void timevar_start ( timevar_id_t  timevar  ) 

void timevar_stop ( timevar_id_t  timevar  ) 


Variable Documentation

Definition at line 169 of file timevar.c.

Definition at line 178 of file timevar.c.

Definition at line 116 of file timevar.c.

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]

Definition at line 166 of file timevar.c.

Definition at line 173 of file timevar.c.


Generated on Wed Apr 8 15:46:14 2009 for Open64 by  doxygen 1.5.6