#include <cpu_ti.hpp>
§ CpuTiTgmr() [1/2]
simgrid::surf::CpuTiTgmr::CpuTiTgmr |
( |
trace_type |
type, |
|
|
double |
value |
|
) |
| |
|
inline |
§ CpuTiTgmr() [2/2]
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) |
- Returns
- Integration trace structure
§ ~CpuTiTgmr()
simgrid::surf::CpuTiTgmr::~CpuTiTgmr |
( |
| ) |
|
§ integrate()
double simgrid::surf::CpuTiTgmr::integrate |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
Integrate trace.
Wrapper around surf_cpu_integrate_trace_simple() to get the cyclic effect.
- Parameters
-
a | Begin of interval |
b | End of interval |
- Returns
- the integrate value. -1 if an error occurs.
§ solve()
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
§ solveSomewhatSimple()
double simgrid::surf::CpuTiTgmr::solveSomewhatSimple |
( |
double |
a, |
|
|
double |
amount |
|
) |
| |
Auxiliary function to solve integral.
Here, amount is <= trace->total and a <=trace->last_time
§ getPowerScale()
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
-
- Returns
- CPU speed scale
§ type_
§ value_
double simgrid::surf::CpuTiTgmr::value_ |
§ lastTime_
double simgrid::surf::CpuTiTgmr::lastTime_ = 0.0 |
§ total_
double simgrid::surf::CpuTiTgmr::total_ = 0.0 |
§ trace_
CpuTiTrace* simgrid::surf::CpuTiTgmr::trace_ = nullptr |
§ speedTrace_
tmgr_trace_t simgrid::surf::CpuTiTgmr::speedTrace_ = nullptr |
The documentation for this class was generated from the following files: