all_the_time 0.1.0

Processor time tracking utilities for benchmarks and performance analysis
Documentation

Processor time tracking utilities for benchmarks and performance analysis.

This package provides utilities to track processor time during code execution, enabling analysis of processor usage patterns in benchmarks and performance tests.

use all_the_time::Session;

fn main() {
    let mut session = Session::new();

    // Track a single operation
    {
        let operation = session.operation("my_operation");
        let _span = operation.iterations(1).measure_thread();
        // Perform some processor-intensive work
        let mut sum = 0;
        for i in 0..10000 {
            sum += i;
        }
    }

    // Print results
    session.print_to_stdout();

    // Session automatically cleans up when dropped
}

More details in the package documentation.

This is part of the Folo project that provides mechanisms for high-performance hardware-aware programming in Rust.