pub struct ChromeBenchmarkMetadata {
pub benchmark_start_time_us: Option<i64>,
pub story_run_time_us: Option<i64>,
pub benchmark_name: Option<String>,
pub benchmark_description: Option<String>,
pub label: Option<String>,
pub story_name: Option<String>,
pub story_tags: Vec<String>,
pub story_run_index: Option<i32>,
pub had_failures: Option<bool>,
}Expand description
This message is not intended to be written by the chrome on the device. It’s emitted on the host by the telemetry benchmark infrastructure (it’s a part of the trace that’s written by the telemetry tracing agent).
Fields§
§benchmark_start_time_us: Option<i64>Time when the benchmark execution started (host unixtime in microseconds).
story_run_time_us: Option<i64>Time when this particular story was run (host unixtime in microseconds).
benchmark_name: Option<String>Name of benchmark.
benchmark_description: Option<String>Description of benchmark.
label: Option<String>Optional label.
story_name: Option<String>Name of story.
List of story tags.
story_run_index: Option<i32>Index of the story run (>0 if the same story was run several times).
had_failures: Option<bool>Whether this run failed.
Implementations§
Source§impl ChromeBenchmarkMetadata
impl ChromeBenchmarkMetadata
Sourcepub fn benchmark_start_time_us(&self) -> i64
pub fn benchmark_start_time_us(&self) -> i64
Returns the value of benchmark_start_time_us, or the default value if benchmark_start_time_us is unset.
Sourcepub fn story_run_time_us(&self) -> i64
pub fn story_run_time_us(&self) -> i64
Returns the value of story_run_time_us, or the default value if story_run_time_us is unset.
Sourcepub fn benchmark_name(&self) -> &str
pub fn benchmark_name(&self) -> &str
Returns the value of benchmark_name, or the default value if benchmark_name is unset.
Sourcepub fn benchmark_description(&self) -> &str
pub fn benchmark_description(&self) -> &str
Returns the value of benchmark_description, or the default value if benchmark_description is unset.
Sourcepub fn label(&self) -> &str
pub fn label(&self) -> &str
Returns the value of label, or the default value if label is unset.
Sourcepub fn story_name(&self) -> &str
pub fn story_name(&self) -> &str
Returns the value of story_name, or the default value if story_name is unset.
Sourcepub fn story_run_index(&self) -> i32
pub fn story_run_index(&self) -> i32
Returns the value of story_run_index, or the default value if story_run_index is unset.
Sourcepub fn had_failures(&self) -> bool
pub fn had_failures(&self) -> bool
Returns the value of had_failures, or the default value if had_failures is unset.
Trait Implementations§
Source§impl Clone for ChromeBenchmarkMetadata
impl Clone for ChromeBenchmarkMetadata
Source§fn clone(&self) -> ChromeBenchmarkMetadata
fn clone(&self) -> ChromeBenchmarkMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChromeBenchmarkMetadata
impl Debug for ChromeBenchmarkMetadata
Source§impl Default for ChromeBenchmarkMetadata
impl Default for ChromeBenchmarkMetadata
Source§fn default() -> ChromeBenchmarkMetadata
fn default() -> ChromeBenchmarkMetadata
Source§impl Message for ChromeBenchmarkMetadata
impl Message for ChromeBenchmarkMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ChromeBenchmarkMetadata
impl PartialEq for ChromeBenchmarkMetadata
impl StructuralPartialEq for ChromeBenchmarkMetadata
Auto Trait Implementations§
impl Freeze for ChromeBenchmarkMetadata
impl RefUnwindSafe for ChromeBenchmarkMetadata
impl Send for ChromeBenchmarkMetadata
impl Sync for ChromeBenchmarkMetadata
impl Unpin for ChromeBenchmarkMetadata
impl UnwindSafe for ChromeBenchmarkMetadata
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].