From 1636045e4d50ce9b144318f10791022afa429108 Mon Sep 17 00:00:00 2001 From: Matt Paras Date: Thu, 12 Sep 2024 07:32:39 -0700 Subject: [PATCH] add back feature flags for profiling for wasm --- crates/steel-core/src/steel_vm/engine.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/steel-core/src/steel_vm/engine.rs b/crates/steel-core/src/steel_vm/engine.rs index 149155000..f425ac9d9 100644 --- a/crates/steel-core/src/steel_vm/engine.rs +++ b/crates/steel-core/src/steel_vm/engine.rs @@ -389,7 +389,7 @@ impl Engine { log::debug!(target:"kernel", "Instantiating a new kernel"); #[cfg(feature = "profiling")] let mut total_time = std::time::Instant::now(); - // #[cfg(feature = "profiling")] + #[cfg(feature = "profiling")] let mut now = std::time::Instant::now(); let mut vm = Engine { @@ -478,7 +478,7 @@ impl Engine { set_default_prelude_macros(vm.in_scope_macros().clone()); - // #[cfg(feature = "profiling")] + #[cfg(feature = "profiling")] log::debug!(target: "kernel", "Loaded prelude in the kernel!: {:?}", now.elapsed()); #[cfg(feature = "profiling")]