docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
sdfg::passes::HierarchicalStatistics Class Reference

#include <sdfg/passes/statistics.h>

Inheritance diagram for sdfg::passes::HierarchicalStatistics:
[legend]

Classes

struct  Node

Public Member Functions

virtual ~HierarchicalStatistics ()=default
Node * enter_scope (const std::string &name, const std::string &scope_type)
void exit_scope ()
void set_metric (const std::string &key, uint64_t value)
void add_metric (const std::string &key, uint64_t value)
void clear ()

Protected Types

enum class  RemapAction { Proceed , NoDescend , Skip }

Protected Member Functions

void print_node (std::ostream &stream, const HierarchicalStatistics::Node &node, int depth)
virtual RemapAction custom_print_node (std::ostream &out, const Node &, int depth)
std::string report (const std::string &title)

Static Protected Member Functions

static void print_node_self (std::ostream &stream, const Node &node, int depth)

Protected Attributes

std::vector< std::unique_ptr< Node > > roots_
Node * current_ = nullptr

Member Enumeration Documentation

◆ RemapAction

Enumerator
Proceed 
NoDescend 
Skip 

Constructor & Destructor Documentation

◆ ~HierarchicalStatistics()

virtual sdfg::passes::HierarchicalStatistics::~HierarchicalStatistics ( )
virtualdefault

Member Function Documentation

◆ add_metric()

void sdfg::passes::HierarchicalStatistics::add_metric ( const std::string & key,
uint64_t value )

◆ clear()

void sdfg::passes::HierarchicalStatistics::clear ( )

◆ custom_print_node()

virtual RemapAction sdfg::passes::HierarchicalStatistics::custom_print_node ( std::ostream & out,
const Node & ,
int depth )
protectedvirtual

◆ enter_scope()

Node * sdfg::passes::HierarchicalStatistics::enter_scope ( const std::string & name,
const std::string & scope_type )

◆ exit_scope()

void sdfg::passes::HierarchicalStatistics::exit_scope ( )

◆ print_node()

void sdfg::passes::HierarchicalStatistics::print_node ( std::ostream & stream,
const HierarchicalStatistics::Node & node,
int depth )
protected

◆ print_node_self()

void sdfg::passes::HierarchicalStatistics::print_node_self ( std::ostream & stream,
const Node & node,
int depth )
staticprotected

◆ report()

std::string sdfg::passes::HierarchicalStatistics::report ( const std::string & title)
protected

◆ set_metric()

void sdfg::passes::HierarchicalStatistics::set_metric ( const std::string & key,
uint64_t value )

Member Data Documentation

◆ current_

Node* sdfg::passes::HierarchicalStatistics::current_ = nullptr
protected

◆ roots_

std::vector<std::unique_ptr<Node> > sdfg::passes::HierarchicalStatistics::roots_
protected

The documentation for this class was generated from the following file: