souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
51 class LogTimer :
public Statement,
public AbstractLog {
68 void print(std::ostream& os,
int tabpos)
const override {
71 os <<
times(
" ", tabpos) <<
"END_TIMER" << std::endl;
LogTimer * clone() const override
Create a clone (i.e.
void apply(const NodeMapper &map) override
Apply the mapper to all child nodes.
auto map(const std::vector< A > &xs, F &&f)
Applies a function to each element of a vector and returns the results.
void apply(const NodeMapper &map)
Execution time logger for a statement.
const std::string message
Logging message.
void print(std::ostream &os, int tabpos) const override
Pretty print with indentation.
std::string stringify(const std::string &input)
Stringify a string using escapes for escape, newline, tab, double-quotes and semicolons.
auto clone(const std::vector< A * > &xs)
An abstract class for manipulating RAM Nodes by substitution.
detail::multiplying_printer< T > times(const T &value, unsigned num)
A utility printing a given value multiple times.
void print(std::ostream &os) const override
Print RAM node.
AbstractLog(Own< Statement > stmt, std::string msg)
std::vector< const Node * > getChildNodes() const override
Obtain list of all embedded child nodes.
std::vector< const Node * > getChildNodes() const
LogTimer(Own< Statement > stmt, std::string msg)
Own< Statement > statement
Logging statement.