14 #include "int_sizes.h"
18 #define RESOURCES_CORES "CORES"
19 #define RESOURCES_MEMORY "MEMORY"
20 #define RESOURCES_DISK "DISK"
21 #define RESOURCES_WALL_TIME "WALL_TIME"
22 #define RESOURCES_GPUS "GPUS"
23 #define RESOURCES_MPI_PROCESSES "MPI_PROCESSES"
48 double virtual_memory;
55 double bytes_received;
61 double context_switches;
63 double max_concurrent_processes;
64 double total_processes;
75 size_t snapshots_count;
79 void rmsummary_print(FILE *stream,
struct rmsummary *s,
int pprint,
struct jx *verbatim_fields);
80 void rmsummary_print_buffer(
struct buffer *B,
const struct rmsummary *s,
int only_resources);
81 char *rmsummary_print_string(
const struct rmsummary *s,
int only_resources);
84 int rmsummary_set(
struct rmsummary *s,
const char *resource,
double value);
85 double rmsummary_get(
const struct rmsummary *s,
const char *resource);
87 void rmsummary_set_by_offset(
struct rmsummary *s,
size_t offset,
double value);
88 double rmsummary_get_by_offset(
const struct rmsummary *s,
size_t offset);
91 struct rmsummary *rmsummary_parse_file_single(
const char *filename);
94 struct rmsummary *rmsummary_parse_string(
const char *str);
97 struct list *rmsummary_parse_file_multiple(
const char *filename);
99 struct jx *rmsummary_to_json(
const struct rmsummary *s,
int only_resources);
103 struct rmsummary *rmsummary_create(
double default_value);
104 void rmsummary_delete(
struct rmsummary *s);
106 void rmsummary_read_env_vars(
struct rmsummary *s);
116 void rmsummary_debug_report(
const struct rmsummary *s);
121 size_t rmsummary_num_resources();
122 const char **rmsummary_list_resources();
124 const char *rmsummary_resource_units(
const char *resource_name);
125 int rmsummary_resource_decimals(
const char *resource_name);
126 size_t rmsummary_resource_offset(
const char *resource_name);
128 const char *rmsummary_resource_to_str();
JSON Expressions (JX) library.
Definition: rmsummary.h:26
String Buffer Operations.
JX value representing any expression type.
Definition: jx.h:117
Definition: category.h:61