Definition in file instrumentation.c.
Include dependency graph for instrumentation.c:
Go to the source code of this file.
Defines | |
#define | IP_HISTORY_START_ADD(ip, amount) ((ip)->ip_History.start + (amount)) % (ip)->ip_History.length |
Add an amount to an existing index into the ip_History.data array of the iPoint structure. | |
Functions | |
void | iInitPoint (struct iPoint *ip) |
Initialize an instrumentation point and add it to the list of active points. | |
void | iPostFloatData (struct iPoint *ip, double value) |
Post a floating point data value to an instrumentation point. | |
void | iPrintPoint (FILE *file, struct iPoint *ip) |
Print the collected values for an instrumentation point. | |
void | iPrintPoints (FILE *file) |
Print all of the instrumentation points that have had data posted to them using iPrintPoint. | |
void | iPrintPointsAtExit (void) |
An atexit(3) function that calls iPrintPoints with a file from one of the following sources (listed in order of precedence):. | |
Variables | |
const char * | DEFAULT_INSTRUMENTATION_FILE_NAME |
The default file name format for the instrumentation file. | |
iInstrumentationData | instrumentation_data |
The global data needed by the instrumentation infrastructure. |
|
Add an amount to an existing index into the ip_History.data array of the iPoint structure. In case the addition causes the index to extend beyond the bounds of the array, the result will be wrapped around to the beginning.
Definition at line 40 of file instrumentation.c. Referenced by iPostFloatData(), and iPrintPoint(). |
|
Initialize an instrumentation point and add it to the list of active points. Normally, a point starts out with all fields initialized to zero, unless a history array is provided. We must then perform some additional setup by assigning default values to some fields.
Definition at line 61 of file instrumentation.c. References instrumentation_data, and require. Referenced by iPostFloatData(). |
|
Post a floating point data value to an instrumentation point.
Definition at line 86 of file instrumentation.c. References iInitPoint(), IP_HISTORY_START_ADD, and require. |
Here is the call graph for this function:
|
Print the collected values for an instrumentation point. The summary data printed depends on whether or not a history array has been provided: no history means the summary covers all of the posted data; otherwise the summary covers only the data held in the history.
Definition at line 126 of file instrumentation.c. References IP_HISTORY_START_ADD, IPF_MASK, and require. Referenced by iPrintPoints(). |
|
Print all of the instrumentation points that have had data posted to them using iPrintPoint.
Definition at line 231 of file instrumentation.c. References instrumentation_data, iPrintPoint(), and require. Referenced by iPrintPointsAtExit(). |
Here is the call graph for this function:
|
An atexit(3) function that calls iPrintPoints with a file from one of the following sources (listed in order of precedence):.
Definition at line 246 of file instrumentation.c. References DEFAULT_INSTRUMENTATION_FILE_NAME, INSTR_FILE_NAME_ENV, instrumentation_data, and iPrintPoints(). Referenced by main(), and ManagerImpl::ManagerImpl(). |
Here is the call graph for this function:
|
Initial value:
PACKAGE "-instrumentation-%d.txt"
Definition at line 46 of file instrumentation.c. Referenced by iPrintPointsAtExit(). |