Skip to content
Open
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 @@ -418,6 +418,7 @@ impl Module {
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 @@ -455,7 +456,10 @@ impl Module {
heap: freezer.into_ref(),
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