@@ -2,7 +2,6 @@ use std::collections::{BTreeMap, BTreeSet, HashMap};
22use std:: fmt:: Write ;
33
44use anyhow:: Result ;
5- use std:: time:: Instant ;
65use heck:: * ;
76use js_component_bindgen:: function_bindgen:: {
87 ErrHandling , FunctionBindgen , ResourceData , ResourceMap , ResourceTable ,
@@ -142,8 +141,6 @@ pub fn componentize_bindgen(
142141 wid : WorldId ,
143142 features : & Vec < Feature > ,
144143) -> Result < Componentization > {
145- let t_total = Instant :: now ( ) ;
146- let mut t_stage = Instant :: now ( ) ;
147144 let mut bindgen = JsBindgen {
148145 src : Source :: default ( ) ,
149146 esm_bindgen : EsmBindgen :: default ( ) ,
@@ -167,19 +164,9 @@ pub fn componentize_bindgen(
167164 . local_names
168165 . exclude_globals ( Intrinsic :: get_global_names ( ) ) ;
169166
170- t_stage = Instant :: now ( ) ;
171167 bindgen. imports_bindgen ( ) ;
172- eprintln ! (
173- "trace(bindgen:imports): {} ms" ,
174- t_stage. elapsed( ) . as_millis( )
175- ) ;
176168
177- t_stage = Instant :: now ( ) ;
178169 bindgen. exports_bindgen ( ) ?;
179- eprintln ! (
180- "trace(bindgen:exports): {} ms" ,
181- t_stage. elapsed( ) . as_millis( )
182- ) ;
183170 bindgen. esm_bindgen . populate_export_aliases ( ) ;
184171
185172 // consolidate import specifiers and generate wrappers
@@ -387,32 +374,18 @@ pub fn componentize_bindgen(
387374 . concat( ) ,
388375 ) ;
389376
390- t_stage = Instant :: now ( ) ;
391377 let js_intrinsics = render_intrinsics ( & mut bindgen. all_intrinsics , false , true ) ;
392378 output. push_str ( & js_intrinsics) ;
393379 output. push_str ( & bindgen. src ) ;
394- eprintln ! (
395- "trace(bindgen:intrinsics+emit): {} ms" ,
396- t_stage. elapsed( ) . as_millis( )
397- ) ;
398380
399381 import_wrappers
400382 . iter ( )
401383 . for_each ( |( _, src) | output. push_str ( & format ! ( "\n \n {src}" ) ) ) ;
402384
403- t_stage = Instant :: now ( ) ;
404385 bindgen
405386 . esm_bindgen
406387 . render_export_imports ( & mut output, "$source_mod" , & mut bindgen. local_names ) ;
407- eprintln ! (
408- "trace(bindgen:render-exports-imports): {} ms" ,
409- t_stage. elapsed( ) . as_millis( )
410- ) ;
411388
412- eprintln ! (
413- "trace(bindgen:total): {} ms" ,
414- t_total. elapsed( ) . as_millis( )
415- ) ;
416389 Ok ( Componentization {
417390 js_bindings : output. to_string ( ) ,
418391 exports : bindgen. exports ,
0 commit comments