#include "barretenberg/env/logstr.hpp"
#include "barretenberg/stdlib/primitives/circuit_builders/circuit_builders_fwd.hpp"
#include <algorithm>
#include <sstream>
#include <string>
#include <vector>
Go to the source code of this file.
|
template<typename... Args> |
std::string | format (Args... args) |
|
template<typename T > |
void | benchmark_format_chain (std::ostream &os, T const &first) |
|
template<typename T , typename... Args> |
void | benchmark_format_chain (std::ostream &os, T const &first, Args const &... args) |
|
template<typename... Args> |
std::string | benchmark_format (Args... args) |
|
template<typename... Args> |
void | debug (Args... args) |
|
template<typename... Args> |
void | info (Args... args) |
|
template<typename... Args> |
void | vinfo (Args... args) |
|
template<typename... Args> |
void | important (Args... args) |
|
template<typename... Args> |
void | benchmark_info (Args...) |
| Info used to store circuit statistics during CI/CD with concrete structure. Writes straight to log.
|
|
◆ BENCH_GATE_COUNT_END
#define BENCH_GATE_COUNT_END |
( |
|
builder, |
|
|
|
op_name |
|
) |
| |
Value: uint64_t __bench_after =
builder.get_estimated_num_finalized_gates(); \
std::cerr <<
"num gates with " << op_name <<
" = " << __bench_after - __bench_before <<
std::endl; \
benchmark_info(Builder::NAME_STRING, "Bigfield", op_name, "Gate Count", __bench_after - __bench_before);
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition at line 15 of file log.hpp.
◆ BENCH_GATE_COUNT_START
#define BENCH_GATE_COUNT_START |
( |
|
builder, |
|
|
|
op_name |
|
) |
| uint64_t __bench_before = builder.get_estimated_num_finalized_gates(); |
◆ BENCHMARK_INFO_PREFIX
#define BENCHMARK_INFO_PREFIX "##BENCHMARK_INFO_PREFIX##" |
◆ BENCHMARK_INFO_SEPARATOR
#define BENCHMARK_INFO_SEPARATOR "#" |
◆ BENCHMARK_INFO_SUFFIX
#define BENCHMARK_INFO_SUFFIX "##BENCHMARK_INFO_SUFFIX##" |
◆ benchmark_format()
template<typename... Args>
std::string benchmark_format |
( |
Args... |
args | ) |
|
◆ benchmark_format_chain() [1/2]
template<typename T >
void benchmark_format_chain |
( |
std::ostream & |
os, |
|
|
T const & |
first |
|
) |
| |
◆ benchmark_format_chain() [2/2]
template<typename T , typename... Args>
void benchmark_format_chain |
( |
std::ostream & |
os, |
|
|
T const & |
first, |
|
|
Args const &... |
args |
|
) |
| |
◆ benchmark_info()
template<typename... Args>
void benchmark_info |
( |
Args... |
| ) |
|
|
inline |
Info used to store circuit statistics during CI/CD with concrete structure. Writes straight to log.
Automatically appends the necessary prefix and suffix, as well as separators.
- Template Parameters
-
- Parameters
-
Definition at line 103 of file log.hpp.
◆ debug()
template<typename... Args>
void debug |
( |
Args... |
args | ) |
|
|
inline |
◆ format()
template<typename... Args>
std::string format |
( |
Args... |
args | ) |
|
◆ important()
template<typename... Args>
void important |
( |
Args... |
args | ) |
|
|
inline |
◆ info()
template<typename... Args>
void info |
( |
Args... |
args | ) |
|
|
inline |
◆ vinfo()
template<typename... Args>
void vinfo |
( |
Args... |
args | ) |
|
|
inline |
◆ debug_logging
◆ verbose_logging