Skip to content

Commit

Permalink
feat: Add more buckets to call tracer (matter-labs#1137)
Browse files Browse the repository at this point in the history
## What ❔

<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## 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 19, 2024
1 parent 469ab06 commit dacd8c9
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..=1024.0, 2.0))]
#[metrics(buckets = Buckets::exponential(1.0..=4096.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..=1024.0, 2.0))]
#[metrics(buckets = Buckets::exponential(1.0..=4096.0, 2.0))]
pub max_near_calls: Histogram<usize>,
}

Expand Down

0 comments on commit dacd8c9

Please sign in to comment.