pub struct ProfileResponse {
pub computation_graph: Vec<GraphDef>,
pub hlo_metadata: Option<RunMetadata>,
pub encoded_trace: Vec<u8>,
pub op_profile: Option<Profile>,
pub tool_data: Vec<ProfileToolData>,
pub empty_trace: bool,
}
Fields§
§computation_graph: Vec<GraphDef>
Graphs of programs executed on devices during the profiling period.
hlo_metadata: Option<RunMetadata>
Performance profile that can be used to annotate HLO operations in the computation graph.
encoded_trace: Vec<u8>
Encoded Trace proto message that contains metadata about the trace captured during the profiling period. Describes the devices and resources that ‘trace_events’ refers to.
op_profile: Option<Profile>
Assembles a hierarchical performance profile based on HLOs in trace events. If the trace covers multiple programs, the longest-running one is analyzed. See op_profile.proto for the detailed semantics of the returned profile.
tool_data: Vec<ProfileToolData>
Data payload for each required tools.
empty_trace: bool
When we write profiling data directly to repository directory, we need a way to figure out whether the captured trace is empty (due to idle TPU).
Trait Implementations§
Source§impl Clone for ProfileResponse
impl Clone for ProfileResponse
Source§fn clone(&self) -> ProfileResponse
fn clone(&self) -> ProfileResponse
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 ProfileResponse
impl Debug for ProfileResponse
Source§impl Default for ProfileResponse
impl Default for ProfileResponse
Source§impl Message for ProfileResponse
impl Message for ProfileResponse
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 ProfileResponse
impl PartialEq for ProfileResponse
impl StructuralPartialEq for ProfileResponse
Auto Trait Implementations§
impl Freeze for ProfileResponse
impl RefUnwindSafe for ProfileResponse
impl Send for ProfileResponse
impl Sync for ProfileResponse
impl Unpin for ProfileResponse
impl UnwindSafe for ProfileResponse
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