mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
Annotate snapshot_rbxm for profiling
This commit is contained in:
@@ -102,6 +102,7 @@ impl InstanceSnapshot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[profiling::function]
|
||||||
pub fn from_tree(tree: &WeakDom, id: Ref) -> Self {
|
pub fn from_tree(tree: &WeakDom, id: Ref) -> Self {
|
||||||
let instance = tree.get_by_ref(id).expect("instance did not exist in tree");
|
let instance = tree.get_by_ref(id).expect("instance did not exist in tree");
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};
|
|||||||
|
|
||||||
use super::util::PathExt;
|
use super::util::PathExt;
|
||||||
|
|
||||||
|
#[profiling::function]
|
||||||
pub fn snapshot_rbxm(
|
pub fn snapshot_rbxm(
|
||||||
context: &InstanceContext,
|
context: &InstanceContext,
|
||||||
vfs: &Vfs,
|
vfs: &Vfs,
|
||||||
|
|||||||
Reference in New Issue
Block a user