Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / include / simgrid / plugins / load.h
1 /* Copyright (c) 2017-2023. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SIMGRID_PLUGINS_LOAD_H_
7 #define SIMGRID_PLUGINS_LOAD_H_
8
9 #include <simgrid/config.h>
10 #include <simgrid/forward.h>
11 #include <xbt/base.h>
12
13 SG_BEGIN_DECL
14
15 XBT_PUBLIC void sg_host_load_plugin_init();
16 XBT_PUBLIC double sg_host_get_current_load(const_sg_host_t host);
17 XBT_PUBLIC double sg_host_get_avg_load(const_sg_host_t host);
18 XBT_PUBLIC double sg_host_get_idle_time(const_sg_host_t host);
19 XBT_PUBLIC double sg_host_get_total_idle_time(const_sg_host_t host);
20 XBT_PUBLIC double sg_host_get_computed_flops(const_sg_host_t host);
21 XBT_PUBLIC void sg_host_load_reset(const_sg_host_t host);
22
23 XBT_PUBLIC void sg_link_load_plugin_init();
24 XBT_PUBLIC void sg_link_load_track(const_sg_link_t link);
25 XBT_PUBLIC void sg_link_load_untrack(const_sg_link_t link);
26 XBT_PUBLIC void sg_link_load_reset(const_sg_link_t link);
27 XBT_PUBLIC double sg_link_get_cum_load(const_sg_link_t link);
28 XBT_PUBLIC double sg_link_get_avg_load(const_sg_link_t link);
29 XBT_PUBLIC double sg_link_get_min_instantaneous_load(const_sg_link_t link);
30 XBT_PUBLIC double sg_link_get_max_instantaneous_load(const_sg_link_t link);
31
32 SG_END_DECL
33
34 #endif