Skip to content

Commit 1d1e16d

Browse files
chore: tracing log of cycle count (#1304)
also re-export feature "bench-metrics" for cli
1 parent fc213ec commit 1d1e16d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ toml = { workspace = true }
5454

5555
[features]
5656
default = ["parallel", "mimalloc"]
57+
bench-metrics = ["openvm-sdk/bench-metrics"]
5758
parallel = ["openvm-circuit/parallel"]
5859
mimalloc = ["openvm-circuit/mimalloc"]
5960
jemalloc = ["openvm-circuit/jemalloc"]

crates/vm/src/arch/extensions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ impl<F: PrimeField32, E, P> VmChipComplex<F, E, P> {
11091109
E: ChipUsageGetter,
11101110
P: ChipUsageGetter,
11111111
{
1112+
tracing::info!(metrics.cycle_count);
11121113
counter!("total_cycles").absolute(metrics.cycle_count as u64);
11131114
counter!("main_cells_used")
11141115
.absolute(self.current_trace_cells().into_iter().sum::<usize>() as u64);

0 commit comments

Comments
 (0)