Add profiling info and optional profiling with Tracy

This commit is contained in:
Lucien Greathouse
2022-05-27 03:08:54 -04:00
parent 79b57b3359
commit 7aa7a35aa5
7 changed files with 163 additions and 0 deletions

View File

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