CACAO
Data Structures | Macros | Typedefs | Functions | Variables
profile.c File Reference

Go to the source code of this file.

Data Structures

struct  block_count
 

Macros

#define HASH_SIZE   (1<<20)
 
#define hash(p)   ((((Cell)(p))/sizeof(Inst))&(HASH_SIZE-1))
 

Typedefs

typedef long long_long
 

Functions

block_countblock_lookup (Inst *ip)
 
block_countvm_block_insert (Inst *ip)
 
void add_inst (block_count *b, char *inst)
 
void vm_count_block (Inst *ip)
 
void vm_uncount_block (Inst *ip)
 
void postprocess_block (block_count *b)
 
void postprocess (void)
 
void print_block (FILE *file, block_count *b)
 
void vm_print_profile (FILE *file)
 

Variables

block_countblocks [HASH_SIZE]
 

Macro Definition Documentation

#define hash (   p)    ((((Cell)(p))/sizeof(Inst))&(HASH_SIZE-1))

Definition at line 30 of file profile.c.

#define HASH_SIZE   (1<<20)

Definition at line 29 of file profile.c.

Typedef Documentation

typedef long long_long

Definition at line 35 of file profile.c.

Function Documentation

void add_inst ( block_count b,
char *  inst 
)

Definition at line 79 of file profile.c.

block_count* block_lookup ( Inst ip)

Definition at line 50 of file profile.c.

void postprocess ( void  )

Definition at line 124 of file profile.c.

void postprocess_block ( block_count b)

Definition at line 95 of file profile.c.

void print_block ( FILE *  file,
block_count b 
)

Definition at line 147 of file profile.c.

block_count* vm_block_insert ( Inst ip)

Definition at line 60 of file profile.c.

void vm_count_block ( Inst ip)

Definition at line 85 of file profile.c.

void vm_print_profile ( FILE *  file)

Definition at line 160 of file profile.c.

void vm_uncount_block ( Inst ip)

Definition at line 90 of file profile.c.

Variable Documentation

Definition at line 48 of file profile.c.