From 1d8fc394945fb4447cec23fbfc61fc8961126b7a Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Wed, 24 Jun 2020 19:58:23 +1000 Subject: Add ability to output compiler performance information (#6434) --- cli/main.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index c94aed244..e20435a00 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -428,7 +428,11 @@ async fn bundle_command( let global_state = GlobalState::new(flags)?; - info!("Bundling {}", module_specifier.to_string()); + info!( + "{} {}", + colors::green("Bundle".to_string()), + module_specifier.to_string() + ); let output = tsc::bundle( &global_state, @@ -442,11 +446,15 @@ async fn bundle_command( debug!(">>>>> bundle END"); if let Some(out_file_) = out_file.as_ref() { - info!("Emitting bundle to {:?}", out_file_); let output_bytes = output.as_bytes(); let output_len = output_bytes.len(); deno_fs::write_file(out_file_, output_bytes, 0o666)?; - info!("{} emitted.", human_size(output_len as f64)); + info!( + "{} {:?} ({})", + colors::green("Emit".to_string()), + out_file_, + colors::gray(human_size(output_len as f64)) + ); } else { println!("{}", output); } -- cgit v1.2.3