mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Instrument tracing on block production code path (#8017)
Partially #7814. Instrument block production code path. New root spans: * `produce_block_v3` * `produce_block_v2` Example traces: <img width="518" height="432" alt="image" src="https://github.com/user-attachments/assets/a9413d25-501c-49dc-95cc-623db5988981" /> Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
@@ -26,7 +26,7 @@ impl From<ArithError> for Error {
|
||||
/// If the root of the supplied `state` is known, then it can be passed as `state_root`. If
|
||||
/// `state_root` is `None`, the root of `state` will be computed using a cached tree hash.
|
||||
/// Providing the `state_root` makes this function several orders of magnitude faster.
|
||||
#[instrument(skip_all)]
|
||||
#[instrument(level = "debug", skip_all)]
|
||||
pub fn per_slot_processing<E: EthSpec>(
|
||||
state: &mut BeaconState<E>,
|
||||
state_root: Option<Hash256>,
|
||||
|
||||
Reference in New Issue
Block a user