Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::detail::GlobalBenchStatsContainer Struct Reference

#include <bb_bench.hpp>

Public Member Functions

 ~GlobalBenchStatsContainer ()
 
void print () const
 
void clear ()
 
void add_entry (const char *key, const std::shared_ptr< TimeStatsEntry > &entry)
 
void print_stats_recursive (const OperationKey &key, const TimeStats *stats, const std::string &indent) const
 
void print_aggregate_counts (std::ostream &, size_t) const
 
void print_aggregate_counts_hierarchical (std::ostream &) const
 
AggregateData aggregate () const
 

Public Attributes

std::mutex mutex
 
std::vector< std::shared_ptr< TimeStatsEntry > > entries
 

Static Public Attributes

static thread_local TimeStatsEntryparent = nullptr
 

Detailed Description

Definition at line 81 of file bb_bench.hpp.

Constructor & Destructor Documentation

◆ ~GlobalBenchStatsContainer()

bb::detail::GlobalBenchStatsContainer::~GlobalBenchStatsContainer ( )

Definition at line 234 of file bb_bench.cpp.

Member Function Documentation

◆ add_entry()

void bb::detail::GlobalBenchStatsContainer::add_entry ( const char *  key,
const std::shared_ptr< TimeStatsEntry > &  entry 
)

Definition at line 241 of file bb_bench.cpp.

◆ aggregate()

AggregateData bb::detail::GlobalBenchStatsContainer::aggregate ( ) const

Definition at line 203 of file bb_bench.cpp.

◆ clear()

void bb::detail::GlobalBenchStatsContainer::clear ( )

Definition at line 560 of file bb_bench.cpp.

◆ print()

void bb::detail::GlobalBenchStatsContainer::print ( ) const

Definition at line 248 of file bb_bench.cpp.

◆ print_aggregate_counts()

void bb::detail::GlobalBenchStatsContainer::print_aggregate_counts ( std::ostream &  os,
size_t  indent 
) const

Definition at line 273 of file bb_bench.cpp.

◆ print_aggregate_counts_hierarchical()

void bb::detail::GlobalBenchStatsContainer::print_aggregate_counts_hierarchical ( std::ostream &  os) const

Definition at line 299 of file bb_bench.cpp.

◆ print_stats_recursive()

void bb::detail::GlobalBenchStatsContainer::print_stats_recursive ( const OperationKey key,
const TimeStats stats,
const std::string &  indent 
) const

Definition at line 257 of file bb_bench.cpp.

Member Data Documentation

◆ entries

std::vector<std::shared_ptr<TimeStatsEntry> > bb::detail::GlobalBenchStatsContainer::entries

Definition at line 86 of file bb_bench.hpp.

◆ mutex

std::mutex bb::detail::GlobalBenchStatsContainer::mutex

Definition at line 85 of file bb_bench.hpp.

◆ parent

thread_local TimeStatsEntry* bb::detail::GlobalBenchStatsContainer::parent = nullptr
inlinestatic

Definition at line 83 of file bb_bench.hpp.


The documentation for this struct was generated from the following files: