diff options
| author | Mica White <botahamec@outlook.com> | 2026-10-31 12:19:17 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-10-31 12:19:17 -0400 |
| commit | c2dfde109b8cd59946081ff2665bd1e75a6d116f (patch) | |
| tree | 9a889a42b9a67fba8851318a79d33a956f8afad1 /platforms/tortuise-script-compiled/src/state.rs | |
| parent | ec40f6e3acc7874b82709ab81b254c741529fdff (diff) | |
Fix import
Diffstat (limited to 'platforms/tortuise-script-compiled/src/state.rs')
| -rw-r--r-- | platforms/tortuise-script-compiled/src/state.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platforms/tortuise-script-compiled/src/state.rs b/platforms/tortuise-script-compiled/src/state.rs index 896b836..9e20cf7 100644 --- a/platforms/tortuise-script-compiled/src/state.rs +++ b/platforms/tortuise-script-compiled/src/state.rs @@ -26,6 +26,7 @@ impl<T> ScriptState<T> { } pub fn get(&self, context: &ScriptContext) -> StateRef<'_, T> { + #[cfg(feature = "profiling")] puffin::profile_function!(); let data = MutexGuard::map(self.data.lock(), |data| { data.get_or_insert_with(|| (self.default)(context)) @@ -34,6 +35,7 @@ impl<T> ScriptState<T> { } pub fn get_mut(&self, context: &ScriptContext) -> StateMut<'_, T> { + #[cfg(feature = "profiling")] puffin::profile_function!(); let data = MutexGuard::map(self.data.lock(), |data| { data.get_or_insert_with(|| (self.default)(context)) |
