MinLCA algorithms
|
Class for timing MinLCA algorithms. More...
#include <profiler.hh>
Public Member Functions | |
template<typename... Args> | |
MinLCAProfiler (Args &&...args) | |
Constructor. More... | |
template<typename... Args> | |
void | init (Args &&...args) |
Reset the data structures of the algorithm. More... | |
virtual MinLCAStatus | run () |
Run the algorithm. More... | |
double | runTime () |
Retrieve the duration of running the algorithm. More... | |
double | initTime () |
Retrieve the duration of initialising the algorithm. More... | |
double | creationTime () |
Retrieve the duration of instantiating the algorithm class. More... | |
Protected Types | |
typedef LCA | Base |
Protected Attributes | |
utils::Timer | _t |
Timer used to count the durations. | |
double | _creation_time |
Duration of object creation. | |
double | _init_time |
Duration of algorithm initialisation. | |
double | _run_time |
Duration of algorithm running. | |
Class for timing MinLCA algorithms.
Definition at line 16 of file profiler.hh.
|
inline |
Constructor.
args | Arguments for the constructor. They depend on the LCA class. |
Definition at line 28 of file profiler.hh.
|
inline |
Retrieve the duration of instantiating the algorithm class.
Definition at line 78 of file profiler.hh.
|
inline |
Reset the data structures of the algorithm.
Resets the data structures of the algorithm. Must be called before its execution with run().
args | Arguments for the constructor. They depend on the LCA class. |
Definition at line 39 of file profiler.hh.
|
inline |
Retrieve the duration of initialising the algorithm.
Definition at line 70 of file profiler.hh.
|
inlinevirtual |
Run the algorithm.
Runs the algorithm and returns its status. Need to call init() before executing.
Definition at line 50 of file profiler.hh.
|
inline |
Retrieve the duration of running the algorithm.
Definition at line 62 of file profiler.hh.