Skip to content

Commit

Permalink
Remove all options related to internal profiling.
Browse files Browse the repository at this point in the history
Delete all uses of the perf_stats method.

Replace the elapsed function.

Remove all references to perf_stats.
  • Loading branch information
macklin-10x committed Mar 14, 2024
1 parent 88f30b3 commit 9618706
Show file tree
Hide file tree
Showing 26 changed files with 111 additions and 278 deletions.
75 changes: 28 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion enclone_denovo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ debruijn.workspace = true
fasta_tools.workspace = true
io_utils.workspace = true
itertools.workspace = true
perf_stats.workspace = true
rayon.workspace = true
string_utils.workspace = true
superslice.workspace = true
Expand Down
8 changes: 4 additions & 4 deletions enclone_denovo/src/bin/denovo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ fn main() {
fasta_file.clone()
};
let mut refx: Vec<Vec<u8>> = read_obj(ref_path);
// println!("used {:.2} seconds loading genome", elapsed(&t));
// println!("used {:.2} seconds loading genome", t.elapsed().as_secs_f64());

// Parse other arguments.

Expand Down Expand Up @@ -2061,7 +2061,7 @@ fn main() {
}
}
}
println!("\nused {:.2} seconds\n", elapsed(&t));
println!("\nused {:.2} seconds\n", t.elapsed().as_secs_f64());
}
}

Expand Down Expand Up @@ -2259,7 +2259,7 @@ fn main() {
min_p *= 0.1;
const D_LOW: usize = 10;
const D_HIGH: usize = 37;
use perf_stats::elapsed;

use std::time::Instant;
let t = Instant::now();
const MAX_TIG: usize = 10_000_000;
Expand Down Expand Up @@ -2470,7 +2470,7 @@ fn main() {
phits,
true_d_pseudo.len()
);
println!("used {:.2} seconds\n", elapsed(&t));
println!("used {:.2} seconds\n", t.elapsed().as_secs_f64());
std::process::exit(0);
}
}
Expand Down
3 changes: 1 addition & 2 deletions enclone_denovo/src/bin/test_const_ighd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use io_utils::fwriteln;
use itertools::Itertools;
use perf_stats::elapsed;

use rayon::prelude::*;
use std::io::Write;
Expand Down Expand Up @@ -81,7 +80,7 @@ fn main() {
}
print!("{}", strme(&results[i].1));
}
println!("used {:.2} minutes\n", elapsed(&t) / 60.0);
println!("used {:.2} minutes\n", t.elapsed().as_secs_f64() / 60.0);
if fail {
println!("\nFAILED!\n");
panic!("failed");
Expand Down
Loading

0 comments on commit 9618706

Please sign in to comment.