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

Fields

time: Duration
func_name: String
filename: String
linenumber: u32

Return

Fields

time: Duration
func_name: String

NativeCall

Fields

time: Duration
func_name: String
module_name: String

NativeReturn

Fields

time: Duration
func_name: String

Exception

Fields

time: Duration
exception_type: String
exception_value: String
filename: String
linenumber: u32

Log

Fields

time: Duration
log_type: String
log_value: String

Import

Fields

time: Duration
module_name: String

Allocation

Fields

time: Duration

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.