#include <cpu_ti.hpp>
§ CpuTiTrace()
simgrid::surf::CpuTiTrace::CpuTiTrace |
( |
tmgr_trace_t |
speedTrace | ) |
|
|
explicit |
§ ~CpuTiTrace()
simgrid::surf::CpuTiTrace::~CpuTiTrace |
( |
| ) |
|
§ integrateSimple()
double simgrid::surf::CpuTiTrace::integrateSimple |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
Auxiliary function to compute the integral between a and b.
It simply computes the integrals at point a and b and returns the difference between them.
- Parameters
-
a | Initial point |
b | Final point |
§ integrateSimplePoint()
double simgrid::surf::CpuTiTrace::integrateSimplePoint |
( |
double |
a | ) |
|
Auxiliary function to compute the integral at point a.
- Parameters
-
§ solveSimple()
double simgrid::surf::CpuTiTrace::solveSimple |
( |
double |
a, |
|
|
double |
amount |
|
) |
| |
Auxiliary function to solve integral.
It returns the date when the requested amount of flops is available
- Parameters
-
a | Initial point |
amount | Amount of flops |
- Returns
- The date when amount is available.
§ binarySearch()
int simgrid::surf::CpuTiTrace::binarySearch |
( |
double * |
array, |
|
|
double |
a, |
|
|
int |
low, |
|
|
int |
high |
|
) |
| |
Binary search in array.
It returns the first point of the interval in which "a" is.
- Parameters
-
array | Array |
a | Value to search |
low | Low bound to search in array |
high | Upper bound to search in array |
- Returns
- Index of point
§ timePoints_
double* simgrid::surf::CpuTiTrace::timePoints_ |
§ integral_
double* simgrid::surf::CpuTiTrace::integral_ |
§ nbPoints_
int simgrid::surf::CpuTiTrace::nbPoints_ |
The documentation for this class was generated from the following files: