@@ -81,17 +81,8 @@ impl ProverBuilder for BBFiles {
8181 fn create_prover_cpp ( & mut self , name : & str , lookup_names : & [ String ] ) {
8282 let include_str = includes_cpp ( & snake_case ( name) ) ;
8383
84- let polynomial_commitment_phase = create_commitments_phase ( ) ;
85-
86- let ( call_log_derivative_phase, log_derivative_inverse_phase) : ( String , String ) =
87- if lookup_names. is_empty ( ) {
88- ( "" . to_owned ( ) , "" . to_owned ( ) )
89- } else {
90- (
91- "execute_log_derivative_inverse_round();" . to_owned ( ) ,
92- create_log_derivative_inverse_round ( lookup_names) ,
93- )
94- } ;
84+ let polynomial_commitment_phase = create_commitments_phase ( commitment_polys) ;
85+ let log_derivative_inverse_phase = create_log_derivative_inverse_round ( lookup_names) ;
9586
9687 let prover_cpp = format ! ( "
9788 {include_str}
@@ -206,18 +197,18 @@ impl ProverBuilder for BBFiles {
206197 execute_preamble_round();
207198
208199 // Compute wire commitments
209- execute_wire_commitments_round();
200+ AVM_TRACK_TIME( \" proving/wire_commitments_round_ms \" , execute_wire_commitments_round() );
210201
211202 // Compute sorted list accumulator and commitment
212- {call_log_derivative_phase}
203+ AVM_TRACK_TIME( \" proving/log_derivative_inverse_round_ms \" , execute_log_derivative_inverse_round());
213204
214205 // Fiat-Shamir: alpha
215206 // Run sumcheck subprotocol.
216- execute_relation_check_rounds();
207+ AVM_TRACK_TIME( \" proving/relation_check_rounds_ms \" , execute_relation_check_rounds() );
217208
218209 // Fiat-Shamir: rho, y, x, z
219210 // Execute Zeromorph multilinear PCS
220- execute_pcs_rounds();
211+ AVM_TRACK_TIME( \" proving/pcs_rounds_ms \" , execute_pcs_rounds() );
221212
222213 return export_proof();
223214 }}
@@ -264,6 +255,7 @@ fn includes_cpp(name: &str) -> String {
264255 #include \" barretenberg/polynomials/polynomial.hpp\"
265256 #include \" barretenberg/relations/permutation_relation.hpp\"
266257 #include \" barretenberg/sumcheck/sumcheck.hpp\"
258+ #include \" barretenberg/vm/avm_trace/stats.hpp\"
267259 "
268260 )
269261}
@@ -296,6 +288,10 @@ fn create_commitments_phase() -> String {
296288}
297289
298290fn create_log_derivative_inverse_round ( lookup_operations : & [ String ] ) -> String {
291+ if lookup_operations. is_empty ( ) {
292+ return "" . to_owned ( ) ;
293+ }
294+
299295 let all_commit_operations = map_with_newline ( lookup_operations, commitment_transform) ;
300296 let send_to_verifier_operations =
301297 map_with_newline ( lookup_operations, send_to_verifier_transform) ;
0 commit comments