/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/plugins/load.h"
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/plugins/load.h"
, last_updated(surf_get_clock())
, last_reset(surf_get_clock())
, current_speed(host->getSpeed())
, last_updated(surf_get_clock())
, last_reset(surf_get_clock())
, current_speed(host->getSpeed())
/* Current flop per second computed by the cpu; current_flops = k * pstate_speed_in_flops, k \in {0, 1, ..., cores}
* number of active cores */
/* Current flop per second computed by the cpu; current_flops = k * pstate_speed_in_flops, k \in {0, 1, ..., cores}
* number of active cores */
/* flops == pstate_speed * cores_being_currently_used */
computed_flops += (now - last_updated) * current_flops;
/* flops == pstate_speed * cores_being_currently_used */
computed_flops += (now - last_updated) * current_flops;