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

#include <memory_profile.hpp>

Public Member Functions

void add_checkpoint (const std::string &stage)
 
void set_circuit_name (const std::string &name)
 
void next_circuit ()
 
void serialize_json (std::ostream &os) const
 
void clear ()
 

Public Attributes

std::mutex mutex
 
std::vector< MemoryCheckpointcheckpoints
 
std::string current_circuit_name
 
size_t current_circuit_index = 0
 

Detailed Description

Definition at line 25 of file memory_profile.hpp.

Member Function Documentation

◆ add_checkpoint()

void bb::detail::MemoryProfile::add_checkpoint ( const std::string &  stage)

Definition at line 37 of file memory_profile.cpp.

◆ clear()

void bb::detail::MemoryProfile::clear ( )

Definition at line 55 of file memory_profile.cpp.

◆ next_circuit()

void bb::detail::MemoryProfile::next_circuit ( )

Definition at line 49 of file memory_profile.cpp.

◆ serialize_json()

void bb::detail::MemoryProfile::serialize_json ( std::ostream &  os) const

Definition at line 63 of file memory_profile.cpp.

◆ set_circuit_name()

void bb::detail::MemoryProfile::set_circuit_name ( const std::string &  name)

Definition at line 43 of file memory_profile.cpp.

Member Data Documentation

◆ checkpoints

std::vector<MemoryCheckpoint> bb::detail::MemoryProfile::checkpoints

Definition at line 27 of file memory_profile.hpp.

◆ current_circuit_index

size_t bb::detail::MemoryProfile::current_circuit_index = 0

Definition at line 29 of file memory_profile.hpp.

◆ current_circuit_name

std::string bb::detail::MemoryProfile::current_circuit_name

Definition at line 28 of file memory_profile.hpp.

◆ mutex

std::mutex bb::detail::MemoryProfile::mutex

Definition at line 26 of file memory_profile.hpp.


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