mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 13:21:38 +00:00
Annotate snapshot_rbxm for profiling
This commit is contained in:
parent
7aa7a35aa5
commit
824cdc5dcd
2 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue