pub struct IcSnapshotLocalMetrics { /* private fields */ }Expand description
Read-only diagnostic snapshot for one opened download-journal guard.
Successful and failed returned calls have separate duration summaries in nanoseconds. Verification includes internal upload-preparation checks; preparation durations include those checks and must not be summed with them as exclusive work. Prepared bytes count successful data payloads only, including empty known chunks; repeated preparation records another sample, not unique or transferred bytes.
Sampling starts empty on create/open and is never persisted or serialized
or reconstructed from journal evidence. Samples outside the u64 unit range are excluded independently.
Counts/totals clip independently with sticky actual-overflow flags; exactly
reached caps remain exact. Inspect the shared aggregate before exact arithmetic. These values establish
no IC cost, complete transfer, spending, receipt, freshness or outcome authority.
Implementations§
Source§impl IcSnapshotLocalMetrics
impl IcSnapshotLocalMetrics
Sourcepub const fn verification_success_ns(self) -> MeasurementSummary
pub const fn verification_success_ns(self) -> MeasurementSummary
Read successful local IC-tree verification durations in nanoseconds.
Sourcepub const fn verification_failure_ns(self) -> MeasurementSummary
pub const fn verification_failure_ns(self) -> MeasurementSummary
Read rejected local IC-tree verification durations in nanoseconds.
Sourcepub const fn upload_metadata_success_ns(self) -> MeasurementSummary
pub const fn upload_metadata_success_ns(self) -> MeasurementSummary
Read successful local upload-metadata preparation durations in nanoseconds.
Sourcepub const fn upload_metadata_failure_ns(self) -> MeasurementSummary
pub const fn upload_metadata_failure_ns(self) -> MeasurementSummary
Read rejected local upload-metadata preparation durations in nanoseconds.
Sourcepub const fn upload_data_success_ns(self) -> MeasurementSummary
pub const fn upload_data_success_ns(self) -> MeasurementSummary
Read successful local upload-data preparation durations in nanoseconds.
Sourcepub const fn upload_data_failure_ns(self) -> MeasurementSummary
pub const fn upload_data_failure_ns(self) -> MeasurementSummary
Read rejected local upload-data preparation durations in nanoseconds.
Sourcepub const fn prepared_chunk_bytes(self) -> MeasurementAggregate
pub const fn prepared_chunk_bytes(self) -> MeasurementAggregate
Read successful prepared chunk sizes in bytes, including zero and repeated work.
This mergeable aggregate retains count, total and maximum, without ordering or a latest value. The histogram is its sole owner.
Sourcepub const fn prepared_chunk_bytes_histogram(self) -> MeasurementHistogram<4>
pub const fn prepared_chunk_bytes_histogram(self) -> MeasurementHistogram<4>
Read the distribution of successful prepared chunk sizes in bytes.
Inclusive upper bounds are zero, 32 KiB, 256 KiB and 1 MiB. Disjoint
buckets distinguish empty chunks, small extents, larger extents and the
supported maximum. Overflow is separate; admitted payloads cannot exceed
1 MiB. Repeated preparation is another sample, not unique progress.
Counts saturate independently; ranges are not exact percentiles.
The histogram owns the aggregate returned by Self::prepared_chunk_bytes.