Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb_bench.hpp File Reference
#include "barretenberg/common/compiler_hints.hpp"
#include <iostream>
#include <map>
#include <memory>
#include <ostream>
#include <string_view>
#include <tracy/Tracy.hpp>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Classes

struct  bb::detail::OperationLabel< N >
 
struct  bb::detail::TimeAndCount
 
struct  bb::detail::AggregateEntry
 
struct  bb::detail::GlobalBenchStatsContainer
 
struct  bb::detail::TimeStats
 
struct  bb::detail::TimeStatsEntry
 
struct  bb::detail::ThreadBenchStats< Op >
 
struct  bb::detail::BenchReporter
 

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 
namespace  bb::detail
 

Macros

#define BB_TRACY()   (void)0
 
#define BB_TRACY_NAME(name)   (void)0
 
#define BB_BENCH_TRACY()   BB_BENCH_ONLY_NAME(__func__)
 
#define BB_BENCH_TRACY_NAME(name)   BB_BENCH_ONLY_NAME(name)
 
#define BB_BENCH_ONLY_NAME(name)    bb::detail::BenchReporter _bb_bench_reporter((bb::detail::ThreadBenchStats<name>::ensure_stats().get()))
 
#define BB_BENCH_ENABLE_NESTING()
 
#define BB_BENCH_ONLY()   BB_BENCH_ONLY_NAME(__func__)
 
#define BB_BENCH_NAME(name)
 
#define BB_BENCH()
 

Typedefs

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

Functions

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

Macro Definition Documentation

◆ BB_BENCH

#define BB_BENCH ( )
Value:
BB_BENCH_ENABLE_NESTING()
#define BB_BENCH_TRACY()
Definition bb_bench.hpp:209

Definition at line 222 of file bb_bench.hpp.

◆ BB_BENCH_ENABLE_NESTING

#define BB_BENCH_ENABLE_NESTING ( )
Value:
if (_bb_bench_reporter.stats) \
static thread_local TimeStatsEntry * parent
Definition bb_bench.hpp:83

Definition at line 213 of file bb_bench.hpp.

◆ BB_BENCH_NAME

#define BB_BENCH_NAME (   name)
Value:
BB_BENCH_ENABLE_NESTING()
#define BB_BENCH_TRACY_NAME(name)
Definition bb_bench.hpp:210

Definition at line 218 of file bb_bench.hpp.

◆ BB_BENCH_ONLY

#define BB_BENCH_ONLY ( )    BB_BENCH_ONLY_NAME(__func__)

Definition at line 216 of file bb_bench.hpp.

◆ BB_BENCH_ONLY_NAME

#define BB_BENCH_ONLY_NAME (   name)     bb::detail::BenchReporter _bb_bench_reporter((bb::detail::ThreadBenchStats<name>::ensure_stats().get()))

Definition at line 211 of file bb_bench.hpp.

◆ BB_BENCH_TRACY

#define BB_BENCH_TRACY ( )    BB_BENCH_ONLY_NAME(__func__)

Definition at line 209 of file bb_bench.hpp.

◆ BB_BENCH_TRACY_NAME

#define BB_BENCH_TRACY_NAME (   name)    BB_BENCH_ONLY_NAME(name)

Definition at line 210 of file bb_bench.hpp.

◆ BB_TRACY

#define BB_TRACY ( )    (void)0

Definition at line 207 of file bb_bench.hpp.

◆ BB_TRACY_NAME

#define BB_TRACY_NAME (   name)    (void)0

Definition at line 208 of file bb_bench.hpp.