pub enum FunctionTrace {
RegisterThread(ThreadRegistration),
Call {
time: Duration,
func_name: String,
filename: String,
linenumber: u32,
},
Return {
time: Duration,
func_name: String,
},
NativeCall {
time: Duration,
func_name: String,
module_name: String,
},
NativeReturn {
time: Duration,
func_name: String,
},
Exception {
time: Duration,
exception_type: String,
exception_value: String,
filename: String,
linenumber: u32,
},
Log {
time: Duration,
log_type: String,
log_value: String,
},
Import {
time: Duration,
module_name: String,
},
Allocation {
time: Duration,
details: AllocationDetails,
},
}
Expand description
A representation of the various trace messages a client thread can send us during normal tracing operation.
Variants§
RegisterThread(ThreadRegistration)
A request to register this as a new thread.
NOTE: This must be sent as the first message from a new thread, and may not be sent twice by any thread.
Call
Return
NativeCall
NativeReturn
Exception
Fields
Log
Import
Allocation
Trait Implementations§
source§impl Debug for FunctionTrace
impl Debug for FunctionTrace
source§impl<'de> Deserialize<'de> for FunctionTrace
impl<'de> Deserialize<'de> for FunctionTrace
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more