#include <profiling_monitor.hpp>
|
| const ProfilingData< number > & | data |
| | The profiling data struct which contains the relevant information for profiling.
|
| |
| const TimeIntegration::TimeIterator< number > & | time |
| | The time iterator which is used to compute the current time.
|
| |
| number | last_written_time = 0.0 |
| | The time at which the last profiling output was written.
|
| |
| std::chrono::time_point< std::chrono::system_clock > | real_time_start |
| | Real time at object construction.
|
| |
| boost::signals2::signal< void(const ConditionalOStream &pcout)> | notify_signal |
| | Signal to notify subscribers when profiling output is generated.
|
| |
◆ ProfilingMonitor()
template<typename number >
◆ compute_current_time()
template<typename number >
◆ now()
template<typename number >
Returns true if according to the data set in the profiling data struct, profiling outout should be performed. Otherwise, returns false.
◆ print()
template<typename number >
Print profiling summary as obtained by the TimerOutput class and statistics summary of all available monitors.
- Parameters
-
| pcout | ConditionalOStream to print the text. |
| timer | TimerOutput object which contains the profiling information. |
| mpi_communicator | MPI communicator relevant for the timer. |
◆ subscribe()
template<typename number >
Subscribe to the profiling monitor. The subscribed callback function will be called whenever profiling output is generated. The idea is to allow other parts of the code to react to profiling output and write there own information to the output stream. The callback function should take a single argument of type ConditionalOStream, which is the output stream to which profiling information is written.
- Parameters
-
| callback | The callback function to be called when profiling output is generated. |
◆ data
template<typename number >
The profiling data struct which contains the relevant information for profiling.
◆ last_written_time
template<typename number >
The time at which the last profiling output was written.
◆ notify_signal
template<typename number >
Signal to notify subscribers when profiling output is generated.
◆ real_time_start
template<typename number >
Real time at object construction.
◆ time
template<typename number >
The time iterator which is used to compute the current time.
The documentation for this class was generated from the following files: