Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
zemse committed Apr 19, 2024
1 parent 1fd9536 commit 82e4776
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use foundry_common::{
compile::{ContractSources, ProjectCompiler},
evm::EvmArgs,
shell,
term::Spinner,
};
use foundry_compilers::{artifacts::output_selection::OutputSelection, utils::source_files_iter};
use foundry_config::{
Expand Down Expand Up @@ -275,6 +276,10 @@ impl FlamegraphArgs {
test_name.truncate(test_name.len() - 2);
}

println!();
let mut spinner = Spinner::new("Flamingraph...");
spinner.tick();

let mut flamegraph = if should_debug {
// Get first non-empty suite result. We will have only one such entry

Expand Down Expand Up @@ -341,6 +346,9 @@ impl FlamegraphArgs {
);

flamegraph.generate(&file_name);

println!("\nFlamegraph generated!");

if self.open {
open::that(file_name)?;
}
Expand Down

0 comments on commit 82e4776

Please sign in to comment.