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>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for PackageLoadMetrics
impl PartialEq for PackageLoadMetrics
impl StructuralPartialEq for PackageLoadMetrics
Auto Trait Implementations§
impl Freeze for PackageLoadMetrics
impl RefUnwindSafe for PackageLoadMetrics
impl Send for PackageLoadMetrics
impl Sync for PackageLoadMetrics
impl Unpin for PackageLoadMetrics
impl UnwindSafe for PackageLoadMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request