pub struct ProfilingData { /* private fields */ }Expand description
Profiling data for a ZKBoo circuit.
Implementations§
Source§impl ProfilingData
impl ProfilingData
Sourcepub fn state_size(&self) -> Shape
pub fn state_size(&self) -> Shape
Size of the circuit state, in bytes per Word type.
Sourcepub fn gate_counts(&self) -> &GateCounts
pub fn gate_counts(&self) -> &GateCounts
Counts of each gate type in the circuit, in number of gates per Word type.
Sourcepub fn max_live_wordrefs(&self) -> Shape
pub fn max_live_wordrefs(&self) -> Shape
Maximum number of live word references at any point during execution, in number of word references per Word type.
Sourcepub fn max_cumulative_refcount(&self) -> Shape
pub fn max_cumulative_refcount(&self) -> Shape
Maximum cumulative reference count at any point during execution, in number of word references per Word type.
Sourcepub fn max_refcount(&self) -> Shape
pub fn max_refcount(&self) -> Shape
Maximum reference count for any individual word reference at any point during execution,
Sourcepub fn and_msg_size(&self) -> Shape
pub fn and_msg_size(&self) -> Shape
Size of AND messages in the response, in bytes per Word type.
Sourcepub fn response_data(&self) -> ResponseData
pub fn response_data(&self) -> ResponseData
Derives response data from this profiling data.
Sourcepub fn views_data(&self) -> ViewsData
pub fn views_data(&self) -> ViewsData
Derives views data from this profiling data.
Sourcepub fn state_mem_usage(&self) -> MemoryUsage
pub fn state_mem_usage(&self) -> MemoryUsage
Memory usage for the circuit state, based on the maximum state size during execution.
Sourcepub fn output_mem_usage(&self) -> MemoryUsage
pub fn output_mem_usage(&self) -> MemoryUsage
Memory usage for the circuit output, based on the total number of output words.
Sourcepub fn wordrefs_mem_usage(&self) -> MemoryUsage
pub fn wordrefs_mem_usage(&self) -> MemoryUsage
Memory usage for word references, based on the maximum number of live word references and maximum cumulative reference count during execution.
Sourcepub fn memory_manager_mem_usage<RC: RefCount>(&self) -> MemoryUsage
pub fn memory_manager_mem_usage<RC: RefCount>(&self) -> MemoryUsage
Memory usage for the memory manager, based on the maximum state size during execution and the number of reference count updates.
Sourcepub fn executor_mem_usage<RC: RefCount>(&self) -> MemoryUsage
pub fn executor_mem_usage<RC: RefCount>(&self) -> MemoryUsage
Total memory usage for the executor, based on the memory usage of the circuit state, word references, memory manager, and output.
Sourcepub fn prover_mem_usage<RC: RefCount>(&self) -> MemoryUsage
pub fn prover_mem_usage<RC: RefCount>(&self) -> MemoryUsage
Memory usage for the prover, based on the memory usage of the circuit state shares, word references, and memory manager.
Sourcepub fn verifier_mem_usage<RC: RefCount>(&self) -> MemoryUsage
pub fn verifier_mem_usage<RC: RefCount>(&self) -> MemoryUsage
Memory usage for the verifier, based on the memory usage of the circuit state shares, word references, and memory manager.
Trait Implementations§
Source§impl Clone for ProfilingData
impl Clone for ProfilingData
Source§fn clone(&self) -> ProfilingData
fn clone(&self) -> ProfilingData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more