CACAO
Functions | Variables
profile.cpp File Reference

Go to the source code of this file.

Functions

bool profile_init (void)
 
static void profile_thread (void)
 
bool profile_start_thread (void)
 
static bool profile_compare_frequency (methodinfo *m1, methodinfo *m2)
 Comparison function used to sort a method list from higher to lower by comparing the method call frequencies. More...
 
void profile_printstats (void)
 Prints profiling statistics gathered during runtime. More...
 

Variables

static s4 runs = 0
 
static s4 hits = 0
 
static s4 misses = 0
 

Function Documentation

static bool profile_compare_frequency ( methodinfo m1,
methodinfo m2 
)
static

Comparison function used to sort a method list from higher to lower by comparing the method call frequencies.

Parameters
m1First method to be compared.
m2Second method to be compared.
Returns
Returns true if the first method goes before the second method in the specific order, and false otherwise.

Definition at line 198 of file profile.cpp.

bool profile_init ( void  )

Definition at line 60 of file profile.cpp.

void profile_printstats ( void  )

Prints profiling statistics gathered during runtime.

Definition at line 209 of file profile.cpp.

bool profile_start_thread ( void  )

Definition at line 175 of file profile.cpp.

static void profile_thread ( void  )
static

Definition at line 80 of file profile.cpp.

Variable Documentation

s4 hits = 0
static

Definition at line 76 of file profile.cpp.

s4 misses = 0
static

Definition at line 77 of file profile.cpp.

s4 runs = 0
static

Definition at line 74 of file profile.cpp.