Skip to content

Commit

Permalink
fix: another Cargo.toml bench-metrics feature dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh-axiom-xyz committed Jan 10, 2025
1 parent 69923a0 commit 4a8f7c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pprof = { version = "0.13", features = [

[features]
default = ["parallel", "mimalloc", "bench-metrics"]
bench-metrics = ["openvm-native-recursion/bench-metrics"]
bench-metrics = ["openvm-native-recursion/bench-metrics", "openvm-native-compiler/bench-metrics"]
profiling = ["openvm-sdk/profiling"]
aggregation = []
static-verifier = ["openvm-native-recursion/static-verifier"]
Expand Down
7 changes: 3 additions & 4 deletions extensions/native/compiler/src/constraints/halo2/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,9 @@ impl<C: Config + Debug> Halo2ConstraintCompiler<C> {
let mut vkey_hash = None;
let mut committed_values_digest = None;
#[cfg(feature = "bench-metrics")]
{
let mut old_stats = stats_snapshot(ctx, range.clone());
println!("stephenh: hello");
}
let mut old_stats = stats_snapshot(ctx, range.clone());
#[cfg(feature = "bench-metrics")]
println!("stephenh: ahhh");
println!("stephenh: start {}", self.profiling);
for (instruction, backtrace) in operations {
#[cfg(feature = "bench-metrics")]
Expand Down

0 comments on commit 4a8f7c4

Please sign in to comment.