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

Classes

struct  AggregateEntry
 
struct  BenchReporter
 
struct  DomainSeparator
 
struct  GlobalBenchStatsContainer
 
struct  OperationLabel
 
struct  PrecomputedGenerators
 
class  PrecomputedGenerators<"biggroup offset generator", g1::affine_element, 1, 0 >
 
class  PrecomputedGenerators<"biggroup offset generator", secp256r1::g1::affine_element, 1UL, 0UL >
 
class  PrecomputedGenerators<"biggroup table offset generator", g1::affine_element, 1, 0 >
 
class  PrecomputedGenerators<"biggroup table offset generator", secp256r1::g1::affine_element, 1UL, 0UL >
 
class  PrecomputedGenerators<"DEFAULT_DOMAIN_SEPARATOR", bb::grumpkin::g1::affine_element, 8, 0 >
 
class  PrecomputedGenerators<"ECCVM_OFFSET_GENERATOR", g1::affine_element, 1, 0 >
 
class  PrecomputedGenerators<"pedersen_hash_length", bb::grumpkin::g1::affine_element, 1, 0 >
 
class  PrecomputedGenerators<"test generators", g1::affine_element, 2, 0 >
 
struct  ThreadBenchStats
 
struct  TimeAndCount
 
struct  TimeStats
 
struct  TimeStatsEntry
 

Typedefs

using OperationKey = std::string_view
 
using AggregateData = std::unordered_map< OperationKey, std::map< OperationKey, AggregateEntry > >
 

Functions

template<OperationLabel op1, OperationLabel op2>
constexpr auto concat ()
 
template<size_t Min, size_t Max, size_t Inc>
constexpr auto make_index_range ()
 Create an index sequence from Min to Max (not included) with an increment of Inc.
 
std::vector< std::string > split (const std::string &str, char delimiter)
 
void ltrim (std::string &s)
 
void rtrim (std::string &s)
 
void trim (std::string &s)
 
std::vector< std::string > split_and_trim (const std::string &str, char delimiter)
 
template<typename T , typename... BaseClass>
constexpr std::size_t _sum_base_class_size (const T &arg)
 
template<typename T , typename... BaseClass>
auto _concatenate_base_class_get_all (T &arg)
 
template<typename T , typename... BaseClass>
auto _concatenate_base_class_get_all_const (const T &arg)
 
template<typename... BaseClass>
auto _static_concatenate_base_class_get_labels ()
 

Variables

bool use_bb_bench = std::getenv("BB_BENCH") == nullptr ? false : std::string(std::getenv("BB_BENCH")) == "1"
 
GlobalBenchStatsContainer GLOBAL_BENCH_STATS
 

Detailed Description

Provides an abstraction that counts operations based on function names. For efficiency, we spread out counts across threads.

Typedef Documentation

◆ AggregateData

using bb::detail::AggregateData = typedef std::unordered_map<OperationKey, std::map<OperationKey, AggregateEntry> >

Definition at line 78 of file bb_bench.hpp.

◆ OperationKey

typedef std::string_view bb::detail::OperationKey

Definition at line 174 of file bb_bench.cpp.

Function Documentation

◆ _concatenate_base_class_get_all()

template<typename T , typename... BaseClass>
auto bb::detail::_concatenate_base_class_get_all ( T &  arg)

Definition at line 32 of file flavor_macros.hpp.

◆ _concatenate_base_class_get_all_const()

template<typename T , typename... BaseClass>
auto bb::detail::_concatenate_base_class_get_all_const ( const T &  arg)

Definition at line 36 of file flavor_macros.hpp.

◆ _static_concatenate_base_class_get_labels()

template<typename... BaseClass>
auto bb::detail::_static_concatenate_base_class_get_labels ( )

Definition at line 40 of file flavor_macros.hpp.

◆ _sum_base_class_size()

template<typename T , typename... BaseClass>
constexpr std::size_t bb::detail::_sum_base_class_size ( const T &  arg)
constexpr

Definition at line 28 of file flavor_macros.hpp.

◆ concat()

template<OperationLabel op1, OperationLabel op2>
constexpr auto bb::detail::concat ( )
constexpr

Definition at line 39 of file bb_bench.hpp.

◆ ltrim()

void bb::detail::ltrim ( std::string &  s)

Definition at line 24 of file std_string.cpp.

◆ make_index_range()

template<size_t Min, size_t Max, size_t Inc>
constexpr auto bb::detail::make_index_range ( )
constexpr

Create an index sequence from Min to Max (not included) with an increment of Inc.

Definition at line 13 of file constexpr_utils.hpp.

◆ rtrim()

void bb::detail::rtrim ( std::string &  s)

Definition at line 30 of file std_string.cpp.

◆ split()

std::vector< std::string > bb::detail::split ( const std::string &  str,
char  delimiter 
)

Definition at line 10 of file std_string.cpp.

◆ split_and_trim()

std::vector< std::string > bb::detail::split_and_trim ( const std::string &  str,
char  delimiter 
)

Definition at line 41 of file std_string.cpp.

◆ trim()

void bb::detail::trim ( std::string &  s)

Definition at line 36 of file std_string.cpp.

Variable Documentation

◆ GLOBAL_BENCH_STATS

GlobalBenchStatsContainer bb::detail::GLOBAL_BENCH_STATS

Definition at line 569 of file bb_bench.cpp.

◆ use_bb_bench

bool bb::detail::use_bb_bench = std::getenv("BB_BENCH") == nullptr ? false : std::string(std::getenv("BB_BENCH")) == "1"

Definition at line 172 of file bb_bench.cpp.