diff --git a/src/snapshot/instance_snapshot.rs b/src/snapshot/instance_snapshot.rs index 050dc067..77e9f3c6 100644 --- a/src/snapshot/instance_snapshot.rs +++ b/src/snapshot/instance_snapshot.rs @@ -102,6 +102,7 @@ impl InstanceSnapshot { } } + #[profiling::function] pub fn from_tree(tree: &WeakDom, id: Ref) -> Self { let instance = tree.get_by_ref(id).expect("instance did not exist in tree"); diff --git a/src/snapshot_middleware/rbxm.rs b/src/snapshot_middleware/rbxm.rs index b1d61313..c94d4ef4 100644 --- a/src/snapshot_middleware/rbxm.rs +++ b/src/snapshot_middleware/rbxm.rs @@ -7,6 +7,7 @@ use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot}; use super::util::PathExt; +#[profiling::function] pub fn snapshot_rbxm( context: &InstanceContext, vfs: &Vfs,