cctools
rmonitor_poll.h
1 /*
2 Copyright (C) 2013- The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef RMONITOR_POLL_H
8 #define RMONITOR_POLL_H
9 
10 #include "rmsummary.h"
11 
12 struct rmsummary *rmonitor_measure_process(pid_t pid);
13 int rmonitor_measure_process_update_to_peak(struct rmsummary *tr, pid_t pid);
14 struct rmsummary *rmonitor_measure_host(char *);
15 
16 int rmonitor_get_children(pid_t pid, uint64_t **children);
17 
18 
19 typedef enum {
20  MINIMONITOR_RESET = 0,
21  MINIMONITOR_ADD_PID,
22  MINIMONITOR_REMOVE_PID,
23  MINIMONITOR_MEASURE
24 } minimonitor_op;
25 
26 struct rmsummary *rmonitor_minimonitor(minimonitor_op op, uint64_t pid);
27 
28 #endif
Definition: rmsummary.h:26