Annotate snapshot_rbxm for profiling

This commit is contained in:
Lucien Greathouse
2022-05-27 18:12:56 -04:00
parent 7aa7a35aa5
commit 824cdc5dcd
2 changed files with 2 additions and 0 deletions

View File

@@ -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");

View File

@@ -7,6 +7,7 @@ use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};
use super::util::PathExt;
#[profiling::function]
pub fn snapshot_rbxm(
context: &InstanceContext,
vfs: &Vfs,