pub struct PackageLoadMetrics {
pub name: Option<String>,
pub load_duration: Option<Duration>,
pub num_targets: Option<u64>,
pub computation_steps: Option<u64>,
pub num_transitive_loads: Option<u64>,
pub package_overhead: Option<u64>,
}Expand description
Message used to concisely report all package metrics.
Fields§
§name: Option<String>Name of the package.
load_duration: Option<Duration>Wall-time duration it took to construct the package.
num_targets: Option<u64>Number of targets created in the package.
computation_steps: Option<u64>Number of Starlark computation steps required to create the package.
num_transitive_loads: Option<u64>Number of transitive Starlark load()s required to create the package.
package_overhead: Option<u64>Numeric value given to the memory and general accounting costs associated with a loaded package. Values are an approximate but reasonable proxy for the real storage costs of a package.
Implementations§
source§impl PackageLoadMetrics
impl PackageLoadMetrics
sourcepub fn num_targets(&self) -> u64
pub fn num_targets(&self) -> u64
Returns the value of num_targets, or the default value if num_targets is unset.
sourcepub fn computation_steps(&self) -> u64
pub fn computation_steps(&self) -> u64
Returns the value of computation_steps, or the default value if computation_steps is unset.
sourcepub fn num_transitive_loads(&self) -> u64
pub fn num_transitive_loads(&self) -> u64
Returns the value of num_transitive_loads, or the default value if num_transitive_loads is unset.
sourcepub fn package_overhead(&self) -> u64
pub fn package_overhead(&self) -> u64
Returns the value of package_overhead, or the default value if package_overhead is unset.
Trait Implementations§
source§impl Clone for PackageLoadMetrics
impl Clone for PackageLoadMetrics
source§fn clone(&self) -> PackageLoadMetrics
fn clone(&self) -> PackageLoadMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PackageLoadMetrics
impl Debug for PackageLoadMetrics
source§impl Default for PackageLoadMetrics
impl Default for PackageLoadMetrics
source§impl Message for PackageLoadMetrics
impl Message for PackageLoadMetrics
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.source§impl PartialEq for PackageLoadMetrics
impl PartialEq for PackageLoadMetrics
source§fn eq(&self, other: &PackageLoadMetrics) -> bool
fn eq(&self, other: &PackageLoadMetrics) -> bool
self and other values to be equal, and is used
by ==.