Expand description
Performance profiler for execution statistics
This module provides Profiler for tracking per-operation and per-stratum
statistics during query execution. It can be used to identify performance
bottlenecks and understand resource usage patterns.
§Example
use xlog_runtime::profiler::{Profiler, OpStats};
let mut profiler = Profiler::new(true);
// Record operation statistics
profiler.record(OpStats {
op_name: "hash_join".to_string(),
input_rows: 1000,
output_rows: 500,
duration_us: 1500,
memory_bytes: 4096,
});
// Get summary
println!("{}", profiler.summary());Structs§
- Execution
Stats - Final execution statistics returned to CLI
- Measure
Guard - RAII guard for measuring operation timing
- OpStats
- Statistics for a single operation
- Profiler
- Execution profiler for tracking operation statistics
- Stratum
Stats - Statistics for a single stratum