Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions starlark/src/environment/modules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ impl<'v> Module<'v> {
extra_value,
heap_profile_on_freeze,
} = self;
#[cfg(not(target_arch = "wasm32"))]
let start = Instant::now();
// This is when we do the GC/freeze, using the module slots as roots
// Note that we even freeze anonymous slots, since they are accessed by
Expand Down Expand Up @@ -487,7 +488,10 @@ impl<'v> Module<'v> {
heap: frozen_heap.into_ref_impl(name),
module: frozen_module_ref,
extra_value,
#[cfg(not(target_arch = "wasm32"))]
eval_duration: start.elapsed() + eval_duration.get(),
#[cfg(target_arch = "wasm32")]
eval_duration: eval_duration.get(),
})
}

Expand Down