Derive Macro memory_trace_macros::MemoryTraceHelper[][src]

#[derive(MemoryTraceHelper)]
{
    // Attributes available to this derive:
    #[name]
}

MemoryTraceHelper adds two methods reset and sum to derived struct. All fields of derived struct should be usize. reset updates the struct and returns a delta represented by a TraceEvent sum returns the summary of all field values.