Prototypes | |
WeaveSearchTiming * | XLALWeaveSearchTimingCreate (const BOOLEAN detailed_timing, const WeaveStatisticsParams *statistics_params) |
Create a search timing structure. More... | |
void | XLALWeaveSearchTimingDestroy (WeaveSearchTiming *tim) |
Destroy a search timing structure. More... | |
int | XLALWeaveSearchTimingStart (WeaveSearchTiming *tim) |
Start timing of search. More... | |
int | XLALWeaveSearchTimingElapsed (WeaveSearchTiming *tim, double *wall_elapsed, double *cpu_elapsed) |
Return elapsed wall and CPU times since start of search timing. More... | |
int | XLALWeaveSearchTimingStop (WeaveSearchTiming *tim, double *wall_total, double *cpu_total) |
Stop timing of search. More... | |
int | XLALWeaveSearchTimingSection (WeaveSearchTiming *tim, const WeaveSearchTimingSection prev_section, const WeaveSearchTimingSection next_section) |
Change the search section currently being timed. More... | |
int | XLALWeaveSearchTimingStatistic (WeaveSearchTiming *tim, const WeaveStatisticType prev_statistic, const WeaveStatisticType next_statistic) |
Change the search statistic currently being timed. More... | |
int | XLALWeaveSearchTimingWriteInfo (FITSFile *file, const WeaveSearchTiming *tim, const WeaveCacheQueries *queries) |
Write information from search timing to a FITS file. More... | |
Internal functions | |
static double | wall_time (void) |
Return wall time in seconds. More... | |
static double | cpu_time (void) |
Return CPU time in seconds. More... | |
Go to the source code of this file.
Data Structures | |
struct | WeaveSearchTiming |
Container for timings and other information for a timing model. More... | |
Enumerations | |
enum | WeaveSearchTimingDenominator { WEAVE_SEARCH_DENOM_NONE , WEAVE_SEARCH_DENOM_PCOH , WEAVE_SEARCH_DENOM_PSEMI , WEAVE_SEARCH_DENOM_PSSM1 , WEAVE_SEARCH_DENOM_PSSEG , WEAVE_SEARCH_DENOM_PSTOP , WEAVE_SEARCH_DENOM_MAX } |
Denominator to use for timing constants. More... | |
Variables | |
const char * | denom_names [WEAVE_SEARCH_DENOM_MAX] |
Names of denominator to use for timing constants. More... | |
struct { | |
const char * name | |
const char * comment | |
const WeaveSearchTimingDenominator denom | |
} | cpu_sections [WEAVE_SEARCH_TIMING_MAX] |
Parameters of search timing sections. More... | |
Denominator to use for timing constants.
Definition at line 63 of file SearchTiming.c.
|
inlinestatic |
Return wall time in seconds.
Definition at line 121 of file SearchTiming.c.
|
inlinestatic |
Return CPU time in seconds.
Definition at line 130 of file SearchTiming.c.
WeaveSearchTiming* XLALWeaveSearchTimingCreate | ( | const BOOLEAN | detailed_timing, |
const WeaveStatisticsParams * | statistics_params | ||
) |
Create a search timing structure.
Definition at line 140 of file SearchTiming.c.
void XLALWeaveSearchTimingDestroy | ( | WeaveSearchTiming * | tim | ) |
Destroy a search timing structure.
Definition at line 163 of file SearchTiming.c.
int XLALWeaveSearchTimingStart | ( | WeaveSearchTiming * | tim | ) |
Start timing of search.
Definition at line 175 of file SearchTiming.c.
int XLALWeaveSearchTimingElapsed | ( | WeaveSearchTiming * | tim, |
double * | wall_elapsed, | ||
double * | cpu_elapsed | ||
) |
Return elapsed wall and CPU times since start of search timing.
Definition at line 212 of file SearchTiming.c.
int XLALWeaveSearchTimingStop | ( | WeaveSearchTiming * | tim, |
double * | wall_total, | ||
double * | cpu_total | ||
) |
Stop timing of search.
Definition at line 242 of file SearchTiming.c.
int XLALWeaveSearchTimingSection | ( | WeaveSearchTiming * | tim, |
const WeaveSearchTimingSection | prev_section, | ||
const WeaveSearchTimingSection | next_section | ||
) |
Change the search section currently being timed.
Definition at line 286 of file SearchTiming.c.
int XLALWeaveSearchTimingStatistic | ( | WeaveSearchTiming * | tim, |
const WeaveStatisticType | prev_statistic, | ||
const WeaveStatisticType | next_statistic | ||
) |
Change the search statistic currently being timed.
Definition at line 322 of file SearchTiming.c.
int XLALWeaveSearchTimingWriteInfo | ( | FITSFile * | file, |
const WeaveSearchTiming * | tim, | ||
const WeaveCacheQueries * | queries | ||
) |
Write information from search timing to a FITS file.
Definition at line 360 of file SearchTiming.c.
const char* denom_names[WEAVE_SEARCH_DENOM_MAX] |
Names of denominator to use for timing constants.
Definition at line 81 of file SearchTiming.c.
Definition at line 93 of file SearchTiming.c.
Definition at line 94 of file SearchTiming.c.
Definition at line 95 of file SearchTiming.c.
const { ... } cpu_sections[WEAVE_SEARCH_TIMING_MAX] |
Parameters of search timing sections.