Definition in file childProcess.c.
Include dependency graph for childProcess.c:
Go to the source code of this file.
Functions | |
int | cpInitChildProcessData (void) |
Initialize the internal accounting data structures. | |
void | cpKillChildProcessData (void) |
Deinitialize the internal accounting data structures. | |
cpChildProcess * | cpFindChildProcess (pid_t child_pid) |
Find the cpChildProcess structure that corresponds to the given ID. | |
cpChildProcess * | cpCreateChildProcess (pid_t child_pid) |
Create a cpChildProcess object for a child that does not have one yet. | |
void | cpDeleteChildProcess (struct cpChildProcess *cp) |
Delete the given cpChildProcess object. | |
int | cpOpenOutput (struct cpChildProcess *cp, const char *base_name, struct timeval *start_time) |
Open and initialize the statistics output file for the given cpChildProcess object. | |
unsigned long long | cpSampleUsage (struct cpChildProcess *cp, struct timeval *run_time) |
Sample the resource usage for a given child process. | |
Variables | |
cpChildProcessData | child_process_data |
Global data for child processes. |
|
Create a cpChildProcess object for a child that does not have one yet.
Definition at line 90 of file childProcess.c. References child_process_data, cpFindChildProcess(), ensure, lnAddTail(), and require. Referenced by sigalrm(). |
Here is the call graph for this function:
|
Delete the given cpChildProcess object.
Definition at line 119 of file childProcess.c. References child_process_data, cpFindChildProcess(), ensure, lnRemove(), and require. Referenced by cpKillChildProcessData(). |
Here is the call graph for this function:
|
Find the cpChildProcess structure that corresponds to the given ID.
Definition at line 71 of file childProcess.c. References child_process_data, and require. Referenced by cpCreateChildProcess(), cpDeleteChildProcess(), cpOpenOutput(), cpSampleUsage(), and sigalrm(). |
|
Initialize the internal accounting data structures.
Definition at line 44 of file childProcess.c. References child_process_data, lnNewList(), and require. |
Here is the call graph for this function:
|
Open and initialize the statistics output file for the given cpChildProcess object. The created file will have the form "<base_name>-<pid>.out".
Definition at line 142 of file childProcess.c. References child_process_data, cpFindChildProcess(), and require. Referenced by sigalrm(). |
Here is the call graph for this function:
|
Sample the resource usage for a given child process.
Definition at line 307 of file childProcess.c. References child_process_data, cpFindChildProcess(), pp_block, and require. Referenced by sigalrm(). |
Here is the call graph for this function: