Zoltan2
|
MetricOutputManager handles output of profiling messages. More...
#include <Zoltan2_MetricOutputManager.hpp>
Public Member Functions | |
MetricOutputManager (int rank, bool doPrinting, std::ofstream &Os, bool metricsOn, std::string units=std::string(""), int width=10) | |
Constructor for output to a file. More... | |
MetricOutputManager (int rank, bool doPrinting, std::ostream &Os, bool metricsOn, std::string units=std::string(""), int width=10) | |
Constructor for output to a stream. More... | |
~MetricOutputManager () | |
Destructor. More... | |
std::ostream * | getOStream () const |
Return the output stream for messages. More... | |
bool | getMetricsOn () const |
Return true if any process outputs metrics. More... | |
void | print (const std::string &msg, const T val) |
Print a line of information. More... | |
void | print (const char *msg, T val) |
A version of print that takes char to avoid the cost of converting char * to string. More... | |
MetricOutputManager handles output of profiling messages.
The template parameter is the data type of the value that is being measured. An Environment has a MetricOutputManager for memory profiling.
Parameters governing memory output:
memory_procs
memory_output_stream
memory_output_file
For more information see at their definitions in createAllParameters() in Zoltan2_Parameters.cpp.
Definition at line 38 of file Zoltan2_MetricOutputManager.hpp.
|
inline |
Constructor for output to a file.
rank | the MPI rank of this process. |
doPrinting | true if this process outputs messages. |
messageOs | the output stream for messages. |
metricsOn | true if any process outputs messages. |
units | name of units for metrics printed |
width | field width for metric value |
It is the caller's responsibility to close and free the ofstream.
Definition at line 54 of file Zoltan2_MetricOutputManager.hpp.
|
inline |
Constructor for output to a stream.
rank | the MPI rank of this process. |
doPrinting | true if this process outputs messages. |
messageOs | the output stream for messages. |
metricsOn | true if any process outputs messages. |
units | name of units for metrics printed |
width | field width for metric value |
Definition at line 71 of file Zoltan2_MetricOutputManager.hpp.
|
inline |
Destructor.
Definition at line 79 of file Zoltan2_MetricOutputManager.hpp.
|
inline |
Return the output stream for messages.
Definition at line 83 of file Zoltan2_MetricOutputManager.hpp.
|
inline |
Return true if any process outputs metrics.
Definition at line 87 of file Zoltan2_MetricOutputManager.hpp.
|
inline |
Print a line of information.
msg | a message to go with the information |
val | the value to print |
Definition at line 93 of file Zoltan2_MetricOutputManager.hpp.
|
inline |
A version of print that takes char to avoid the cost of converting char * to string.
msg | a message to go with the information |
units | the units in which the value is measured |
val | the value to print |
Definition at line 114 of file Zoltan2_MetricOutputManager.hpp.