WIP - include dhat for memory profiling tests

This commit is contained in:
Max Brunsfeld 2022-02-28 22:50:15 -08:00
parent 3b7cfad718
commit 471ecae82c
3 changed files with 48 additions and 16 deletions

View file

@ -22,6 +22,9 @@ fn init_logger() {
}
}
// #[global_allocator]
// static ALLOC: dhat::Alloc = dhat::Alloc;
pub fn run_test(
mut num_iterations: u64,
mut starting_seed: u64,
@ -35,6 +38,8 @@ pub fn run_test(
bool,
)),
) {
// let _profiler = dhat::Profiler::new_heap();
let is_randomized = num_iterations > 1;
if is_randomized {
if let Ok(value) = std::env::var("SEED") {