kar ple cache: profile spans around the archive read and the device scatter/decode

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-29 03:14:06 +01:00
co-authored by Claude Sonnet 5.5
parent bb47b296c0
commit 6fd2e897d2
@@ -450,6 +450,7 @@ impl<'ctx> KarPleCache<'ctx> {
return Err(Error::InvalidDimension); return Err(Error::InvalidDimension);
} }
let packets = if rows.iter().any(|r| !self.entries.contains_key(r)) { let packets = if rows.iter().any(|r| !self.entries.contains_key(r)) {
let _p = super::original_serve_profile::span("ple.read_rows");
Some( Some(
binding binding
.read_rows(rows) .read_rows(rows)
@@ -526,6 +527,7 @@ impl<'ctx> KarPleCache<'ctx> {
.map_err(|_| Error::InputAllocation)?; .map_err(|_| Error::InputAllocation)?;
// From the first mutating operation onward, any failure permanently invalidates // From the first mutating operation onward, any failure permanently invalidates
// this cache, including a partial scatter; no stale success mapping is reusable. // this cache, including a partial scatter; no stale success mapping is reusable.
let _device_span = super::original_serve_profile::span("ple.device");
let completed = (|| { let completed = (|| {
if !updates.is_empty() { if !updates.is_empty() {
let mut device = self let mut device = self