osprey/dipa/rta/open64/resource.cxx File Reference

#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "workaround.h"
#include "resource.h"

Include dependency graph for resource.cxx:

Go to the source code of this file.

Data Types

type  resources
type  rstate

Typedefs

typedef struct rusage time_buf_t

Functions/Subroutines

static void Clear_Resource (RESOURCES *r)
static void Get_Resources (RESOURCES *r)
static void Get_Delta_Time (TIME_INFO *current, TIME_INFO *base, TIME_INFO *delta)
static void Get_Delta_Resource (RESOURCES *current, RESOURCES *base, RESOURCES *delta)
static void Accum_Delta_Time (TIME_INFO *delta, TIME_INFO *summary)
static void Accum_Delta_Resource (RESOURCES *delta, RESOURCES *summary)
void Resource_Init (void)
RSTATEResource_Alloc (char *rname, RSTATE *parent)
void Resource_Accum (RSTATE *r, RES_REQUEST req)
TIME_INFOGet_Time (RSTATE *r, RES_REQUEST req)
char * Get_Timer_Name (RSTATE *r)
INT Get_Memory (RSTATE *r, RES_REQUEST req)
void Resource_Report (FILE *file, RES_REQUEST func, RSTATE *r, char *title)

Variables

static time_buf_t tbuf
static RESOURCES curtime
static RESOURCES deltime
static RSTATE runtime
static struct timeval start_time
static INT initialized = 0


Typedef Documentation

Definition at line 44 of file resource.cxx.


Function Documentation

static void Accum_Delta_Resource ( RESOURCES delta,
RESOURCES summary 
) [static]

static void Accum_Delta_Time ( TIME_INFO delta,
TIME_INFO summary 
) [static]

Definition at line 273 of file resource.cxx.

References time_info::secs, and time_info::usecs.

static void Clear_Resource ( RESOURCES r  )  [static]

static void Get_Delta_Resource ( RESOURCES current,
RESOURCES base,
RESOURCES delta 
) [static]

static void Get_Delta_Time ( TIME_INFO current,
TIME_INFO base,
TIME_INFO delta 
) [static]

Definition at line 223 of file resource.cxx.

References time_info::secs, and time_info::usecs.

INT Get_Memory ( RSTATE r,
RES_REQUEST  req 
)

static void Get_Resources ( RESOURCES r  )  [static]

TIME_INFO* Get_Time ( RSTATE r,
RES_REQUEST  req 
)

char* Get_Timer_Name ( RSTATE r  ) 

Definition at line 447 of file resource.cxx.

References rstate::name.

void Resource_Accum ( RSTATE r,
RES_REQUEST  req 
)

RSTATE* Resource_Alloc ( char *  rname,
RSTATE parent 
)

Definition at line 350 of file resource.cxx.

References calloc(), rstate::dad, rstate::name, and r.

void Resource_Init ( void   ) 

void Resource_Report ( FILE file,
RES_REQUEST  func,
RSTATE r,
char *  title 
)


Variable Documentation

RESOURCES curtime [static]

Definition at line 114 of file resource.cxx.

RESOURCES deltime [static]

Definition at line 114 of file resource.cxx.

INT initialized = 0 [static]

Definition at line 121 of file resource.cxx.

RSTATE runtime [static]

Definition at line 115 of file resource.cxx.

Definition at line 117 of file resource.cxx.

time_buf_t tbuf [static]

Definition at line 113 of file resource.cxx.


Generated on Wed Apr 8 15:07:05 2009 for Open64 by  doxygen 1.5.6