mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +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 {
|
||||
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;
|
||||
|
||||
#[profiling::function]
|
||||
pub fn snapshot_rbxm(
|
||||
context: &InstanceContext,
|
||||
vfs: &Vfs,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue