pub struct ProfileRequest {
pub duration_ms: u64,
pub max_events: u64,
pub tools: Vec<String>,
pub tool_options: HashMap<String, ToolRequestOptions>,
pub opts: Option<ProfileOptions>,
pub repository_root: String,
pub session_id: String,
pub host_name: String,
}
Fields§
§duration_ms: u64
In future, the caller will be able to customize when profiling starts and
stops. For now, it collects duration_ms
milliseconds worth of data.
max_events: u64
The maximum number of events to return. By default (value 0), return all events.
tools: Vec<String>
Required profiling tools name such as “input_pipeline_analyzer” etc
tool_options: HashMap<String, ToolRequestOptions>
Specifies the requirement for each tools.
opts: Option<ProfileOptions>
Optional profiling options that control how a TF session will be profiled.
repository_root: String
The place where we will dump profile data. We will normally use MODEL_DIR/plugin/profile/ as our repository root.
session_id: String
The user provided profile session identifier.
host_name: String
The hostname of system where the profile should happen. We use it as identifier in part of our output filename.
Trait Implementations§
Source§impl Clone for ProfileRequest
impl Clone for ProfileRequest
Source§fn clone(&self) -> ProfileRequest
fn clone(&self) -> ProfileRequest
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 ProfileRequest
impl Debug for ProfileRequest
Source§impl Default for ProfileRequest
impl Default for ProfileRequest
Source§impl Message for ProfileRequest
impl Message for ProfileRequest
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 ProfileRequest
impl PartialEq for ProfileRequest
impl StructuralPartialEq for ProfileRequest
Auto Trait Implementations§
impl Freeze for ProfileRequest
impl RefUnwindSafe for ProfileRequest
impl Send for ProfileRequest
impl Sync for ProfileRequest
impl Unpin for ProfileRequest
impl UnwindSafe for ProfileRequest
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