Struct google_api_proto::google::devtools::cloudprofiler::v2::Profile
source · pub struct Profile {
pub name: String,
pub profile_type: i32,
pub deployment: Option<Deployment>,
pub duration: Option<Duration>,
pub profile_bytes: Bytes,
pub labels: BTreeMap<String, String>,
pub start_time: Option<Timestamp>,
}
Expand description
Profile resource.
Fields§
§name: String
Output only. Opaque, server-assigned, unique ID for this profile.
profile_type: i32
Type of profile. For offline mode, this must be specified when creating the profile. For online mode it is assigned and returned by the server.
deployment: Option<Deployment>
Deployment this profile corresponds to.
duration: Option<Duration>
Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can’t be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).
profile_bytes: Bytes
Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto.
labels: BTreeMap<String, String>
Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.
start_time: Option<Timestamp>
Output only. Start time for the profile. This output is only present in response from the ListProfiles method.
Implementations§
source§impl Profile
impl Profile
sourcepub fn profile_type(&self) -> ProfileType
pub fn profile_type(&self) -> ProfileType
Returns the enum value of profile_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_profile_type(&mut self, value: ProfileType)
pub fn set_profile_type(&mut self, value: ProfileType)
Sets profile_type
to the provided enum value.
Trait Implementations§
source§impl Message for Profile
impl Message for Profile
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 Profile
impl PartialEq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl !Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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
§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> 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