mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Add profiling info and optional profiling with Tracy
This commit is contained in:
parent
79b57b3359
commit
7aa7a35aa5
7 changed files with 163 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ use super::{
|
|||
/// Consumes the input `PatchSet`, applying all of its prescribed changes to the
|
||||
/// tree and returns an `AppliedPatchSet`, which can be used to keep another
|
||||
/// tree in sync with Rojo's.
|
||||
#[profiling::function]
|
||||
pub fn apply_patch_set(tree: &mut RojoTree, patch_set: PatchSet) -> AppliedPatchSet {
|
||||
let mut context = PatchApplyContext::default();
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ use super::{
|
|||
InstanceSnapshot, InstanceWithMeta, RojoTree,
|
||||
};
|
||||
|
||||
#[profiling::function]
|
||||
pub fn compute_patch_set(
|
||||
snapshot: Option<&InstanceSnapshot>,
|
||||
tree: &RojoTree,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue