pub struct ProfilingData {
pub context: String,
pub time_ns: u64,
pub memory: u64,
pub quantity: u32,
pub errored: bool,
}Fields§
§context: StringWhat context are we profiling?
time_ns: u64How long this took?
memory: u64How much memory this took? This is using OCaml’s
Gc.minor_words, and is probably not very precise.
quantity: u32How many things were processed? (often, this is the number of items a phase processes)
errored: boolDid the action errored? This is important since a failed action might have exited very early, making the numbers unusable.
Trait Implementations§
Source§impl Clone for ProfilingData
impl Clone for ProfilingData
Source§impl Debug for ProfilingData
impl Debug for ProfilingData
Source§impl<'de> Deserialize<'de> for ProfilingData
impl<'de> Deserialize<'de> for ProfilingData
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
impl Eq for ProfilingData
Source§impl Hash for ProfilingData
impl Hash for ProfilingData
Source§impl JsonSchema for ProfilingData
impl JsonSchema for ProfilingData
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProfilingData
impl PartialEq for ProfilingData
Source§impl Serialize for ProfilingData
impl Serialize for ProfilingData
impl StructuralPartialEq for ProfilingData
Auto Trait Implementations§
impl Forget for ProfilingData
impl Freeze for ProfilingData
impl RefUnwindSafe for ProfilingData
impl Send for ProfilingData
impl Sync for ProfilingData
impl Unpin for ProfilingData
impl UnsafeUnpin for ProfilingData
impl UnwindSafe for ProfilingData
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