starknet_committer,apollo_committer: add timers for fetch patricia paths#14189
starknet_committer,apollo_committer: add timers for fetch patricia paths#14189ArielElp wants to merge 1 commit into
Conversation
PR SummaryLow Risk Overview The measurement layer gains Risk: Low—observability-only on the commit hot path; witness log counts now use Reviewed by Cursor Bugbot for commit b3e1cb3. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e8159c4. Configure here.
1f931cb to
8f9e24b
Compare
535b5e5 to
8508cca
Compare
8f9e24b to
cddd859
Compare
8508cca to
d204c67
Compare
cddd859 to
a660497
Compare
d204c67 to
b7d225e
Compare
b7d225e to
bc61fc5
Compare
00bf9c8 to
9d6106e
Compare
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs reviewed 1 file and all commit messages, and made 5 comments.
Reviewable status: 1 of 3 files reviewed, 5 unresolved discussions (waiting on ArielElp).
crates/apollo_committer/src/committer.rs line 560 at r2 (raw file):
.ok(); block_measurements.start_measurement(Action::EndToEnd);
The end-to-end measurement should include the new actions.
Code quote:
block_measurements.start_measurement(Action::EndToEnd);crates/apollo_committer/src/committer.rs line 659 at r2 (raw file):
fn update_metrics( height: BlockNumber, BlockMeasurement { n_reads, n_writes, durations, modifications_counts, .. }: &BlockMeasurement,
And add a todo to consider including it in the metrics.
Suggestion:
, _fetch_patricia_paths_measurements }crates/starknet_committer/src/block_committer/measurements_util.rs line 16 at r2 (raw file):
Compute, Write, FetchPatriciaPaths(HashOutput),
Gate it?
Code quote:
FetchPatriciaPaths(HashOutput),crates/starknet_committer/src/block_committer/measurements_util.rs line 25 at r2 (raw file):
pub compute_timer: Option<Instant>, pub writer_timer: Option<Instant>, pub fetch_patricia_paths_timers: HashMap<HashOutput, Option<Instant>>,
If you save the timer by hash, how do you know what is the first read and what is the second? The hash itself is not interesting.
Keep it simple with two new timers?
Code quote:
pub fetch_patricia_paths_timers: HashMap<HashOutput, Option<Instant>>,crates/starknet_committer/src/block_committer/measurements_util.rs line 121 at r2 (raw file):
pub root: HashOutput, pub duration: f64, pub n_entries: usize,
There are structs for durations (BlockDurations) and for counts (BlockModificationsCounts).
Code quote:
pub duration: f64,
pub n_entries: usize,87e4d8a to
95ca976
Compare
38ad4df to
0ef2f36
Compare
95ca976 to
b3e1cb3
Compare


No description provided.