Function flame::end_collapse [] [src]

pub fn end_collapse<S: Into<StrCow>>(name: S) -> u64

Ends the current Span and returns the number of nanoseconds that passed.

If this span is a leaf node, and the previous span has the same name and depth, then collapse this span into the previous one. The end_ns field will be updated to the end time of this span, and the delta field will be the sum of the deltas from this and the previous span.

This means that it is possible for end_ns - start_n to not be equal to delta.