Skip to main content

span_record_count

Function span_record_count 

Source
pub fn span_record_count() -> usize
Expand description

Return the number of span records currently held in the current thread’s ring buffer.

§Examples

use martensite_devtools::tracy;

{
    let _g = tracy::span("count_region");
}
assert!(tracy::span_record_count() >= 1);