pub struct ProfileProto {
pub nodes: HashMap<i64, ProfileNode>,
pub has_trace: bool,
pub miss_accelerator_stream: bool,
pub steps: Vec<i64>,
pub id_to_string: HashMap<i64, String>,
}Expand description
A proto representation of the profiler’s profile. It allows serialization, shipping around and deserialization of the profiles.
Please don’t depend on the internals of the profile proto.
Fields§
§nodes: HashMap<i64, ProfileNode>§has_trace: boolWhether or not has code traces.
miss_accelerator_stream: boolWhether or not the TF device tracer fails to return accelerator information (which could lead to 0 accelerator execution time).
steps: Vec<i64>Traced steps.
id_to_string: HashMap<i64, String>Maps from id of CodeDef file,function,line to its string In the future can also map other id of other fields to string.
Trait Implementations§
Source§impl Clone for ProfileProto
impl Clone for ProfileProto
Source§fn clone(&self) -> ProfileProto
fn clone(&self) -> ProfileProto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileProto
impl Debug for ProfileProto
Source§impl Default for ProfileProto
impl Default for ProfileProto
Source§impl Message for ProfileProto
impl Message for ProfileProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ProfileProto
impl PartialEq for ProfileProto
impl StructuralPartialEq for ProfileProto
Auto Trait Implementations§
impl Freeze for ProfileProto
impl RefUnwindSafe for ProfileProto
impl Send for ProfileProto
impl Sync for ProfileProto
impl Unpin for ProfileProto
impl UnwindSafe for ProfileProto
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
Mutably borrows from an owned value. Read more