KASKADE 7 development version
|
A class that gathers data on task timing and provides gnuplot visualization. More...
#include <timing.hh>
A class that gathers data on task timing and provides gnuplot visualization.
This is particularly useful as a performance investigation tool in multithreaded computations, where one can investigate which task is performed during which time interval.
n | the maximal number of segments for each task |
Example usage:
For visualization in form of horizontal task durations in second scale, use gnuplot as
Public Member Functions | |
TaskTiming (int nTasks, int m=1) | |
Constructor. More... | |
void | start (int task) |
defines the start of given task. More... | |
void | stop (int task) |
defines the start of given task. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, TaskTiming const &tt) |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &out, TaskTiming const &tt) |
output of task timing to gnuplot file More... | |
Kaskade::TaskTiming::TaskTiming | ( | int | nTasks, |
int | m = 1 |
||
) |
Constructor.
nTasks | number of tasks to measure. Has to be nonnegative. |
m | maximal number of segments per task to measure. Has to be nonnegative. |
void Kaskade::TaskTiming::start | ( | int | task | ) |
defines the start of given task.
task | the task number in [0,nTasks[ If called multiple times for a task, only the last call counts. |
Referenced by Kaskade::parallelFor(), and Kaskade::PatchDomainDecompositionPreconditioner< Space, m, StorageTag, SparseMatrixIndex >::PatchDomainDecompositionPreconditioner().
void Kaskade::TaskTiming::stop | ( | int | task | ) |
defines the start of given task.
task | the task number in [0,nTasks[ If called multiple times for a task, only the last call counts. |
Referenced by Kaskade::parallelFor(), and Kaskade::PatchDomainDecompositionPreconditioner< Space, m, StorageTag, SparseMatrixIndex >::PatchDomainDecompositionPreconditioner().
|
friend |
|
related |
output of task timing to gnuplot file