[][src]Function xi_trace::samples_cloned_unsorted

pub fn samples_cloned_unsorted() -> Vec<Sample>

Returns all the samples collected so far. There is no guarantee that the samples are ordered chronologically for several reasons:

  1. Samples that span sections of code may be inserted on end instead of beginning.
  2. Performance optimizations might have per-thread buffers. Keeping all that sorted would be prohibitively expensive.
  3. You may not care about them always being sorted if you're merging samples from multiple distributed sources (i.e. you want to sort the merged result rather than just this processe's samples).