summaryrefslogtreecommitdiff
path: root/core/snapshot_util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/snapshot_util.rs')
-rw-r--r--core/snapshot_util.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/snapshot_util.rs b/core/snapshot_util.rs
index a4bf80227..5b0ba92a0 100644
--- a/core/snapshot_util.rs
+++ b/core/snapshot_util.rs
@@ -33,6 +33,12 @@ pub fn create_snapshot(create_snapshot_options: CreateSnapshotOptions) {
snapshot_module_load_cb: create_snapshot_options.snapshot_module_load_cb,
..Default::default()
});
+ println!(
+ "JsRuntime for snapshot prepared, took {:#?} ({})",
+ Instant::now().saturating_duration_since(mark),
+ create_snapshot_options.snapshot_path.display()
+ );
+ mark = Instant::now();
let snapshot = js_runtime.snapshot();
let snapshot_slice: &[u8] = &snapshot;