ESDM
Middleware for Earth System Data
lat-thr.h
1 /* This file is part of ESDM.
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU Lesser General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with ESDM. If not, see <http://www.gnu.org/licenses/>.
15  */
16 #ifndef ESDM_BACKENDS_PERF_MODEL_H
17 #define ESDM_BACKENDS_PERF_MODEL_H
18 
19 #include <esdm.h>
20 #include <jansson.h>
21 
22 typedef struct {
23  double latency_in_s;
24  double throughputBs;
26 
27 int esdm_backend_t_parse_perf_model_lat_thp(json_t *perf_model_str, esdm_perf_model_lat_thp_t *out_data);
28 
29 float esdm_backend_t_perf_model_get_throughput(esdm_perf_model_lat_thp_t* me);
30 
31 int esdm_backend_t_perf_model_long_lat_perf_estimate(esdm_perf_model_lat_thp_t *data, esdm_fragment_t *fragment, float *out_time);
32 
33 int esdm_backend_t_reset_perf_model_lat_thp(esdm_perf_model_lat_thp_t *out_data);
34 
35 #endif
Definition: esdm-datatypes-internal.h:78
Definition: lat-thr.h:22