-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17913 +/- ##
=========================================
- Coverage 82.6% 82.6% -0.1%
=========================================
Files 431 431
Lines 121295 121321 +26
=========================================
+ Hits 100250 100271 +21
- Misses 21045 21050 +5 |
|
Looks like I should move this higher still. Startup metrics are likely different than steady state metrics. |
1d1e7af
to
1b9a485
Compare
ledger-tool/src/main.rs
Outdated
let mut drop_time = Measure::start("drop_time"); | ||
drop(bank_forks); | ||
drop_time.stop(); | ||
info!("drop(bank_forks): {}us", drop_time.as_us()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This drop coincides with a long delay after ledger-tool verify is finished. Reporting this will help the next person verify that this portion of the validator code path is capturing time correctly. Without the explicit drop, the time is when bank_forks goes out of scope and is dropped.
7ac25d6
to
bc68657
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
* add metrics for startup * roll timings up higher * fix test * fix duplicate (cherry picked from commit 471b341) # Conflicts: # ledger/src/bank_forks_utils.rs # runtime/src/snapshot_utils.rs
* add metrics for startup * roll timings up higher * fix test * fix duplicate (cherry picked from commit 471b341) # Conflicts: # ledger/src/bank_forks_utils.rs # runtime/src/snapshot_utils.rs conflicts because #17778 is not present. Co-authored-by: Jeff Washington (jwash) <[email protected]>
Problem
A goal is to speedup startup time of validator. Would be nice to have metrics over more parts.
Summary of Changes
Add metric for the major parts of preparing to start. This at least excludes snapshot download, gossip work, and initial replay.
Fixes #