fpmas-metamodel 1.0
|
#include <probe.h>
Public Member Functions | |
LoadBalancingProbe (fpmas::api::utils::perf::Probe &lb_algorithm_probe, fpmas::api::model::LoadBalancing &lb) | |
fpmas::graph::PartitionMap | balance (fpmas::graph::NodeMap< fpmas::model::AgentPtr > node_map, fpmas::api::graph::PartitionMode mode) override |
fpmas::graph::PartitionMap | balance (fpmas::graph::NodeMap< fpmas::model::AgentPtr > node_map) override |
A wrapper for an existing LoadBalancing algorithm, that adds probes to measure its execution time.
|
inline |
LoadBalancingProbe constructor.
lb_algorithm_probe | Probe that measures only the load balancing algorithm execution time |
lb | Load balancing algorithm to probe |
|
override |
Returns the results of the existing LoadBalancing algorithm, measuring only the LoadBalancing::balance() execution time, without including the distribution time.
This method is automatically called by the FPMAS LoadBalancingTask.
node_map | nodes to balance |
mode | Partition mode, PARTITION or REPARTITION |
|
inlineoverride |
Deprecated, implemented for compatibility with an old API.