fpmas-metamodel 1.0
|
#include <probe.h>
Public Member Functions | |
GraphBalanceProbe (fpmas::api::model::AgentGraph &graph, fpmas::api::model::LoadBalancing &probed_lb, fpmas::api::utils::perf::Probe &lb_algorithm_probe, fpmas::api::utils::perf::Probe &graph_balance_probe) | |
void | run () override |
Public Attributes | |
fpmas::scheduler::Job | job |
Task used to probe the total DistributedGraph::balance() time, that includes the load balancing algorithm application and the distribution process.
|
inline |
DistributeProbeTask constructor.
graph | Distributed graph to balance |
probed_lb | Load balancing algorithm to apply and probe |
lb_algorithm_probe | Probe used to measure only the load balancing algorithm execution time |
graph_balance_probe | Probe used to measure the complete DistributedGraph::balance() execution time, including the distribution process |
|
override |
Runs the LoadBalancingTask and probes it.
The LoadBalancingTask calls the DistributedGraph::balance() method, that includes load balancing and distribution.
fpmas::scheduler::Job GraphBalanceProbe::job |
Job that can be directly scheduled instead of Model::loabBalancingJob() in order to probe load balancing and distribution times.