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)
 
ThreadEventBufferregister_thread_event_buffer (uint64_t tid)
 
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
 
void serialize_aggregate_data_json (std::ostream &) const
 
void serialize_trace_events_json (std::ostream &) const
 
void serialize_aggregate_trace_json (std::ostream &) const
 
AggregateData aggregate () const
 

Public Attributes

std::mutex mutex
 
std::vector< std::shared_ptr< TimeStatsEntry > > entries
 
std::mutex event_mutex
 
std::vector< std::unique_ptr< ThreadEventBuffer > > thread_event_buffers
 

Static Public Attributes

static thread_local TimeStatsEntryparent = nullptr
 

Detailed Description

Definition at line 107 of file bb_bench.hpp.

Constructor & Destructor Documentation

◆ ~GlobalBenchStatsContainer()

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

Definition at line 239 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 246 of file bb_bench.cpp.

◆ aggregate()

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

Definition at line 208 of file bb_bench.cpp.

◆ clear()

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

Definition at line 809 of file bb_bench.cpp.

◆ print()

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

Definition at line 276 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 303 of file bb_bench.cpp.

◆ print_aggregate_counts_hierarchical()

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

Definition at line 548 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 287 of file bb_bench.cpp.

◆ register_thread_event_buffer()

ThreadEventBuffer & bb::detail::GlobalBenchStatsContainer::register_thread_event_buffer ( uint64_t  tid)

Definition at line 253 of file bb_bench.cpp.

◆ serialize_aggregate_data_json()

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

Definition at line 342 of file bb_bench.cpp.

◆ serialize_aggregate_trace_json()

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

Definition at line 474 of file bb_bench.cpp.

◆ serialize_trace_events_json()

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

Definition at line 406 of file bb_bench.cpp.

Member Data Documentation

◆ entries

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

Definition at line 112 of file bb_bench.hpp.

◆ event_mutex

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

Definition at line 115 of file bb_bench.hpp.

◆ mutex

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

Definition at line 111 of file bb_bench.hpp.

◆ parent

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

Definition at line 109 of file bb_bench.hpp.

◆ thread_event_buffers

std::vector<std::unique_ptr<ThreadEventBuffer> > bb::detail::GlobalBenchStatsContainer::thread_event_buffers

Definition at line 116 of file bb_bench.hpp.


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