pub struct TracingSession {
pub id: Option<u64>,
pub consumer_uid: Option<i32>,
pub state: Option<String>,
pub unique_session_name: Option<String>,
pub buffer_size_kb: Vec<u32>,
pub duration_ms: Option<u32>,
pub num_data_sources: Option<u32>,
pub start_realtime_ns: Option<i64>,
}
Fields§
§id: Option<u64>
The TracingSessionID.
consumer_uid: Option<i32>
The Unix uid of the consumer that started the session. This is meaningful only if the caller is root. In all other cases only tracing sessions that match the caller UID will be displayed.
state: Option<String>
Internal state of the tracing session. These strings are FYI only and subjected to change.
unique_session_name: Option<String>
The unique_session_name as set in the trace config (might be empty).
buffer_size_kb: Vec<u32>
The number and size of each buffer.
duration_ms: Option<u32>
Duration, as specified in the TraceConfig.duration_ms.
num_data_sources: Option<u32>
Number of data sources involved in the session.
start_realtime_ns: Option<i64>
Time when the session was started, in the CLOCK_REALTIME domain. Available only on Linux-based systems.
Implementations§
Source§impl TracingSession
impl TracingSession
Sourcepub fn consumer_uid(&self) -> i32
pub fn consumer_uid(&self) -> i32
Returns the value of consumer_uid
, or the default value if consumer_uid
is unset.
Sourcepub fn state(&self) -> &str
pub fn state(&self) -> &str
Returns the value of state
, or the default value if state
is unset.
Sourcepub fn unique_session_name(&self) -> &str
pub fn unique_session_name(&self) -> &str
Returns the value of unique_session_name
, or the default value if unique_session_name
is unset.
Sourcepub fn duration_ms(&self) -> u32
pub fn duration_ms(&self) -> u32
Returns the value of duration_ms
, or the default value if duration_ms
is unset.
Sourcepub fn num_data_sources(&self) -> u32
pub fn num_data_sources(&self) -> u32
Returns the value of num_data_sources
, or the default value if num_data_sources
is unset.
Sourcepub fn start_realtime_ns(&self) -> i64
pub fn start_realtime_ns(&self) -> i64
Returns the value of start_realtime_ns
, or the default value if start_realtime_ns
is unset.
Trait Implementations§
Source§impl Clone for TracingSession
impl Clone for TracingSession
Source§fn clone(&self) -> TracingSession
fn clone(&self) -> TracingSession
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TracingSession
impl Debug for TracingSession
Source§impl Default for TracingSession
impl Default for TracingSession
Source§impl Message for TracingSession
impl Message for TracingSession
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.Source§impl PartialEq for TracingSession
impl PartialEq for TracingSession
impl StructuralPartialEq for TracingSession
Auto Trait Implementations§
impl Freeze for TracingSession
impl RefUnwindSafe for TracingSession
impl Send for TracingSession
impl Sync for TracingSession
impl Unpin for TracingSession
impl UnwindSafe for TracingSession
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)