pub struct TraceOpts {
pub duration: f64,
pub use_step_profiler: bool,
pub use_kernel_profiler: bool,
pub use_extended_profiler: bool,
pub use_gpu_profiler: bool,
pub use_sample_profiler: bool,
}
Fields§
§duration: f64
Length of the trace to be taken, in seconds.
use_step_profiler: bool
If true, capture step profile locally in each worker. Currently unimplemented.
use_kernel_profiler: bool
If true, capture kernel events from each worker.
use_extended_profiler: bool
If true, capture extended profiling events from TensorFlow process.
use_gpu_profiler: bool
If true, capture GPU profiling events locally on each machine. Currently unimplemented.
use_sample_profiler: bool
If true, collect sampled profile events. Currently unimplemented.
Trait Implementations§
Source§impl Message for TraceOpts
impl Message for TraceOpts
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
.impl StructuralPartialEq for TraceOpts
Auto Trait Implementations§
impl Freeze for TraceOpts
impl RefUnwindSafe for TraceOpts
impl Send for TraceOpts
impl Sync for TraceOpts
impl Unpin for TraceOpts
impl UnwindSafe for TraceOpts
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