#include <sys/time.h>#include <sys/resource.h>#include <unistd.h>#include <string.h>#include "defs.h"#include "resource.h"

Go to the source code of this file.
| typedef struct rusage time_buf_t |
Definition at line 49 of file resource.c.
Definition at line 327 of file resource.c.
References Accum_Delta_Time(), resources::etime, resources::freemem, MAX, resources::memory, resources::stime, and resources::utime.
Referenced by Resource_Accum().
Definition at line 303 of file resource.c.
References time_info::secs, and time_info::usecs.
Referenced by Accum_Delta_Resource().
Definition at line 148 of file resource.c.
References resources::etime, resources::freemem, resources::memory, time_info::secs, resources::stime, time_info::usecs, and resources::utime.
Referenced by Resource_Accum().
| static void Get_Delta_Resource | ( | RESOURCES * | current, | |
| RESOURCES * | base, | |||
| RESOURCES * | delta | |||
| ) | [static] |
Definition at line 278 of file resource.c.
References resources::etime, resources::freemem, Get_Delta_Time(), Get_Resources(), resources::memory, resources::stime, and resources::utime.
Referenced by Resource_Accum().
Definition at line 253 of file resource.c.
References time_info::secs, and time_info::usecs.
Referenced by Get_Delta_Resource().
| INTPTR Get_Memory | ( | RSTATE * | r, | |
| RES_REQUEST | req | |||
| ) |
Definition at line 172 of file resource.c.
References clock, resources::etime, resources::freemem, getrusage(), gettimeofday(), initialized, INT, resources::memory, NULL, Resource_Init(), rusage::ru_stime, rusage::ru_utime, RUSAGE_SELF, sbrk(), time_info::secs, start_time, resources::stime, time, times, timeval::tv_sec, timeval::tv_usec, time_info::usecs, resources::utime, and void.
Referenced by Get_Delta_Resource(), Resource_Init(), and Resource_Report().
| TIME_INFO* Get_Time | ( | RSTATE * | r, | |
| RES_REQUEST | req | |||
| ) |
| const char* Get_Timer_Name | ( | RSTATE * | r | ) |
Definition at line 481 of file resource.c.
Referenced by DIPA_Phase_Manager::Get_Phase_ID(), and Report_Delta_Time().
| void Resource_Accum | ( | RSTATE * | r, | |
| RES_REQUEST | req | |||
| ) |
Definition at line 417 of file resource.c.
Referenced by Add_Timer_To_Parent(), Clear_Timer(), Get_User_Time(), Reset_Timers(), Start_Timer(), and Stop_Timer().
Definition at line 384 of file resource.c.
References calloc(), rstate::dad, rstate::name, and r.
Referenced by Alloc_Phase(), and Initialize_Timing().
| void Resource_Report | ( | FILE * | file, | |
| RES_REQUEST | func, | |||
| RSTATE * | r, | |||
| char * | title | |||
| ) |
Definition at line 125 of file resource.c.
Definition at line 125 of file resource.c.
INT initialized = 0 [static] |
Definition at line 136 of file resource.c.
Referenced by __main(), alloc_aux_for_blocks(), alloc_aux_for_edges(), ar_host(), Collect_addr_passed_for_io(), df_hard_reg_init(), Expand_Float_Divide(), Expand_Sqrt(), finalize(), get_address_cost(), Get_Resources(), GTY(), ia64_sched_init(), init_flow(), ipa_init(), ipa_type_escape_field_does_not_clobber_p(), ipa_type_escape_type_contained_p(), lookup_howto(), maybe_init_pretty_print(), mf_varname_tree(), open_dump_file(), print_c_tree(), print_insn_avr(), Print_Name(), Print_Src_Line(), Process_Fill_Align_Pragmas(), PURIFY_OPT_Initialize(), read_rtx(), Resource_Init(), ST_is_const_initialized_scalar(), start_decl_1(), and TI_Initialize().
struct timeval start_time [static] |
Definition at line 131 of file resource.c.
Referenced by IF_CONVERTOR::Compute_Critical_Path_Len(), Get_Resources(), main(), Resource_Init(), sleep(), timevar_get(), timevar_pop(), timevar_pop_1(), timevar_print(), timevar_push(), and timevar_push_1().
time_buf_t tbuf [static] |
Definition at line 123 of file resource.c.
Referenced by _frch(), _frwd(), _fwch(), _fwwd(), _ld_write(), _sr_endrec(), _unit_bksp(), decode_pdp11_d(), decode_pdp11_f(), f_clos_com(), and get_vms_time_string().
1.5.6