AQUAgpusph 4.1.2
|
Runtime outputs base class. More...
#include <CalcServer/Report.h>
Public Member Functions | |
Report (const std::string tool_name, const std::string fields, unsigned int ipf=1, float fps=0.f) | |
Constructor. | |
virtual | ~Report () |
Destructor. | |
virtual void | setup () |
Initialize the tool. | |
const std::string | data (bool with_title=true, bool with_names=true) |
Return the text string of the data to be printed. | |
Public Member Functions inherited from Aqua::CalcServer::Tool | |
Tool (const std::string tool_name, bool once=false) | |
virtual | ~Tool () |
void | name (const std::string tool_name) |
const std::string | name () |
virtual void | setup () |
virtual void | execute () |
Execute the tool measuring the elapsed time. | |
virtual Tool * | next_tool () |
size_t | allocatedMemory () const |
unsigned int | used_times () const |
float | elapsedTime (bool averaged=true) const |
float | elapsedTimeVariance () const |
float | elapsedTimeDeviation () const |
virtual const int | scope_modifier () |
Protected Member Functions | |
void | processFields (const std::string fields) |
Compute the fields by lines. | |
std::vector< InputOutput::Variable * > | variables () |
Get the variables list. | |
bool | mustUpdate () |
Check if an output must be performed. | |
Protected Member Functions inherited from Aqua::CalcServer::Tool | |
int | id_in_pipeline () |
void | next_tool (Tool *tool) |
void | allocatedMemory (size_t mem_size) |
virtual cl_event | _execute (const std::vector< cl_event > events) |
void | addElapsedTime (float elapsed_time) |
Add new data to the average and squared elapsed times. | |
void | setDependencies (std::vector< std::string > var_names) |
Set the depedencies of the tool. | |
void | setDependencies (std::vector< InputOutput::Variable * > vars) |
Set the depedencies of the tool. | |
const std::vector< InputOutput::Variable * > | getDependencies () |
Get the depedencies of the tool. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from Aqua::CalcServer::Tool | |
static std::vector< cl_kernel > | compile (const std::string source, const std::vector< std::string > names, const std::string flags="") |
Compile an OpenCL source code and generate the corresponding kernel. | |
static cl_kernel | compile_kernel (const std::string source, const std::string kernel_name, const std::string flags="") |
Compile an OpenCL source code and generate the corresponding kernel. | |
Runtime outputs base class.
A runtime output is an output value that:
It is tipically applied to print some relevant screen information or plot friendly tabulated files.
Aqua::CalcServer::Reports::Report::Report | ( | const std::string | tool_name, |
const std::string | fields, | ||
unsigned int | ipf = 1 , |
||
float | fps = 0.f |
||
) |
Constructor.
tool_name | Tool name. |
fields | Fields to be printed. The fields are separated by commas or semicolons, and the spaces are just ignored. |
ipf | Iterations per frame, 0 to just ignore this printing criteria. |
fps | Frames per second, 0 to just ignore this printing criteria. |
|
virtual |
Destructor.
const std::string Aqua::CalcServer::Reports::Report::data | ( | bool | with_title = true , |
bool | with_names = true |
||
) |
Return the text string of the data to be printed.
with_title | true if the report title should be inserted, false otherwise. |
with_names | true if the variable names should be printed, false otherwise. |
|
protected |
Check if an output must be performed.
If the answer is true, the tool will set the time instant as the last printing event
|
protected |
Compute the fields by lines.
|
virtual |
Initialize the tool.
Reimplemented from Aqua::CalcServer::Tool.
Reimplemented in Aqua::CalcServer::Reports::Performance, Aqua::CalcServer::Reports::Screen, Aqua::CalcServer::Reports::SetTabFile, and Aqua::CalcServer::Reports::TabFile.
|
inlineprotected |
Get the variables list.