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>,
pub bugreport_score: Option<i32>,
pub bugreport_filename: Option<String>,
pub is_started: Option<bool>,
}
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.
bugreport_score: Option<i32>
The bugreport_score, as set in TraceConfig.bugreport_score.
bugreport_filename: Option<String>
As per TraceConfig.bugreport_filename.
is_started: Option<bool>
If true, the session is in the STARTED state. If false the session is in
any other state (see state
field).
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.
Sourcepub fn bugreport_score(&self) -> i32
pub fn bugreport_score(&self) -> i32
Returns the value of bugreport_score
, or the default value if bugreport_score
is unset.
Sourcepub fn bugreport_filename(&self) -> &str
pub fn bugreport_filename(&self) -> &str
Returns the value of bugreport_filename
, or the default value if bugreport_filename
is unset.
Sourcepub fn is_started(&self) -> bool
pub fn is_started(&self) -> bool
Returns the value of is_started
, or the default value if is_started
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>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
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>
self
.