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