diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-03-25 10:16:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-25 10:16:49 +0100 |
| commit | 074dee1cbca7b3a024d45a3b9dd7d8b51acdd4ee (patch) | |
| tree | 62e154b6cc5b22f79f3aa67cf245c40c1332f7b4 /simulator/opendc-experiments/opendc-experiments-capelin | |
| parent | 6de1ef7424e058603be9ae5a86f0568b40579e5f (diff) | |
| parent | 69598598be2c248acc49e40607b3dd0998ec1ca5 (diff) | |
Add advanced energy model to OpenDC (v1)
This pull request is a preparation for the adding an advanced energy model to OpenDC (#90):
* Add benchmarks for the `opendc-simulator-compute` module, which enables us to quantify the effect on future changes w.r.t. to the energy model on the performance.
* Add `SimResourceTransformer` which can transform resource consumptions. This is useful when transforming from CPU frequency to energy usage for instance.
* Move power models to `opendc-simulator-compute` to be able to be used more generically.
**Breaking API Changes**
* Power models have moved to `opendc-simulator-compute` and now implement the `MachinePowerModel` interface.
Diffstat (limited to 'simulator/opendc-experiments/opendc-experiments-capelin')
| -rw-r--r-- | simulator/opendc-experiments/opendc-experiments-capelin/src/main/kotlin/org/opendc/experiments/capelin/ExperimentHelpers.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simulator/opendc-experiments/opendc-experiments-capelin/src/main/kotlin/org/opendc/experiments/capelin/ExperimentHelpers.kt b/simulator/opendc-experiments/opendc-experiments-capelin/src/main/kotlin/org/opendc/experiments/capelin/ExperimentHelpers.kt index f327b55d..44436019 100644 --- a/simulator/opendc-experiments/opendc-experiments-capelin/src/main/kotlin/org/opendc/experiments/capelin/ExperimentHelpers.kt +++ b/simulator/opendc-experiments/opendc-experiments-capelin/src/main/kotlin/org/opendc/experiments/capelin/ExperimentHelpers.kt @@ -205,7 +205,7 @@ public fun attachMonitor( } .launchIn(coroutineScope) - (host as SimHost).powerDraw + (host as SimHost).machine.powerDraw .onEach { monitor.reportPowerConsumption(host, it) } .launchIn(coroutineScope) } |
