Expand description
Data loading utilities for pre-collected timing measurements.
This module provides utilities for loading timing data from external sources, enabling analysis of measurements collected by other tools (SILENT, dudect, etc.) or historical data.
§Supported Formats
- SILENT format: CSV with
V1,V2header, group labels (X/Y) in first column - Generic two-column: Any CSV with group label and timing value columns
- Separate files: Two files, one per group
§Example
ⓘ
use tacet::data::{load_silent_csv, TimeUnit};
use std::path::Path;
// Load SILENT-format data
let data = load_silent_csv(Path::new("measurements.csv"))?;
println!("Loaded {} baseline, {} test samples",
data.baseline_samples.len(),
data.test_samples.len());Structs§
- Data
Metadata - Metadata about the data source.
- Timing
Data - Loaded timing data with two sample groups.
Enums§
Functions§
- load_
separate_ files - Load timing data from two separate files (one per group).
- load_
silent_ csv - Load timing data from a SILENT-format CSV file.
- load_
two_ column_ csv - Load timing data from a generic two-column CSV file.
- to_
nanoseconds - Convert samples to nanoseconds.