pub trait ProfilerSink {
// Provided methods
fn begin_token(&mut self) { ... }
fn record_attention(&mut self, _layer: usize, _duration: Duration) { ... }
fn record_ffn(&mut self, _layer: usize, _duration: Duration) { ... }
}Expand description
Sink trait used by the model to surface per-layer timings without committing to a particular profiler implementation.