#include <cpu_ti.hpp>
| simgrid::surf::CpuTiTgmr::CpuTiTgmr |
( |
trace_type |
type, |
|
|
double |
value |
|
) |
| |
|
inline |
| simgrid::surf::CpuTiTgmr::CpuTiTgmr |
( |
tmgr_trace_t |
speedTrace, |
|
|
double |
value |
|
) |
| |
Creates a new integration trace from a tmgr_trace_t.
- Parameters
-
| speedTrace | CPU availability trace |
| value | Percentage of CPU speed available (useful to fixed tracing) |
| spacing | Initial spacing |
- Returns
- Integration trace structure
| simgrid::surf::CpuTiTgmr::~CpuTiTgmr |
( |
| ) |
|
| double simgrid::surf::CpuTiTgmr::integrate |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
Integrate trace.
Wrapper around surf_cpu_integrate_trace_simple() to get the cyclic effect.
- Parameters
-
| trace | Trace structure. |
| a | Begin of interval |
| b | End of interval |
- Returns
- the integrate value. -1 if an error occurs.
| double simgrid::surf::CpuTiTgmr::solve |
( |
double |
a, |
|
|
double |
amount |
|
) |
| |
Computes the time needed to execute "amount" on cpu.
Here, amount can span multiple trace periods
- Parameters
-
| a | Initial time |
| amount | Amount to be executed |
- Returns
- End time
| double simgrid::surf::CpuTiTgmr::solveSomewhatSimple |
( |
double |
a, |
|
|
double |
amount |
|
) |
| |
Auxiliary function to solve integral.
Here, amount is <= trace->total and a <=trace->last_time
| double simgrid::surf::CpuTiTgmr::getPowerScale |
( |
double |
a | ) |
|
Auxiliary function to update the CPU speed scale.
This function uses the trace structure to return the speed scale at the determined time a.
- Parameters
-
| trace | Trace structure to search the updated speed scale |
| a | Time |
- Returns
- CPU speed scale
| double simgrid::surf::CpuTiTgmr::value_ |
| double simgrid::surf::CpuTiTgmr::lastTime_ = 0.0 |
| double simgrid::surf::CpuTiTgmr::total_ = 0.0 |
| CpuTiTrace* simgrid::surf::CpuTiTgmr::trace_ = nullptr |
| tmgr_trace_t simgrid::surf::CpuTiTgmr::speedTrace_ = nullptr |
The documentation for this class was generated from the following files: