Skip to main content

ProfilingData

Struct ProfilingData 

Source
pub struct ProfilingData { /* private fields */ }
Expand description

Profiling data for a ZKBoo circuit.

Implementations§

Source§

impl ProfilingData

Source

pub fn state_size(&self) -> Shape

Size of the circuit state, in bytes per Word type.

Source

pub fn gate_counts(&self) -> &GateCounts

Counts of each gate type in the circuit, in number of gates per Word type.

Source

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.

Source

pub fn max_cumulative_refcount(&self) -> Shape

Maximum cumulative reference count at any point during execution, in number of word references per Word type.

Source

pub fn max_refcount(&self) -> Shape

Maximum reference count for any individual word reference at any point during execution,

Source

pub fn and_msg_size(&self) -> Shape

Size of AND messages in the response, in bytes per Word type.

Source

pub fn response_data(&self) -> ResponseData

Derives response data from this profiling data.

Source

pub fn views_data(&self) -> ViewsData

Derives views data from this profiling data.

Source

pub fn state_mem_usage(&self) -> MemoryUsage

Memory usage for the circuit state, based on the maximum state size during execution.

Source

pub fn output_mem_usage(&self) -> MemoryUsage

Memory usage for the circuit output, based on the total number of output words.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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

Source§

fn clone(&self) -> ProfilingData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProfilingData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ProfilingData

Source§

fn default() -> ProfilingData

Returns the “default value” for a type. Read more
Source§

impl Copy for ProfilingData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.