Callisto function reference  5.2
Statistical information

Functions

int CAL_GatherStatistics (int enable)
 
int CAL_ResetStatistics ()
 
int CAL_SaveGroupStatistics (int groupID, char *fileName)
 

Detailed Description

Function Documentation

int CAL_GatherStatistics ( int  enable)

Enable statistics. Statistical information will be gathered for collision checks, closest pairs and penetration depth. Both the number of calls and the total time spent in these functions will be administered. Beware that to gather the statistics themselved a small amount of time is spent.

Parameters
enableThis value has to be either equal to either CAL_ENABLESTATISTICS or CAL_DISABLESTATISTICS.
int CAL_ResetStatistics ( )

Reset all statistics to 0.

int CAL_SaveGroupStatistics ( int  groupID,
char *  fileName 
)

Save the statistical information to a comma delimited file.

Parameters
groupIDThe ID of the group.
fileNameThe path and name of the file to write the information to.