Skip to content

Commit

Permalink
chore: Add more buckets to CallTracer metrics (matter-labs#1064)
Browse files Browse the repository at this point in the history
## What ❔

Add buckets 128-1024

## Why ❔

To have better understanding of stack depth

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.
- [ ] Linkcheck has been run via `zk linkcheck`.
  • Loading branch information
Artemka374 authored Feb 14, 2024
1 parent a80fff2 commit 1701a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/multivm/src/tracers/call_tracer/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ use vise::{Buckets, Histogram, Metrics};
#[metrics(prefix = "vm_call_tracer")]
pub struct CallMetrics {
/// Maximum call stack depth during the execution of the transaction.
#[metrics(buckets = Buckets::exponential(1.0..=64.0, 2.0))]
#[metrics(buckets = Buckets::exponential(1.0..=1024.0, 2.0))]
pub call_stack_depth: Histogram<usize>,
/// Maximum number of near calls during the execution of the transaction.
#[metrics(buckets = Buckets::exponential(1.0..=64.0, 2.0))]
#[metrics(buckets = Buckets::exponential(1.0..=1024.0, 2.0))]
pub max_near_calls: Histogram<usize>,
}

Expand Down

0 comments on commit 1701a4b

Please sign in to comment.