Add flame attribute to check_signals

This commit is contained in:
coolreader18
2019-08-25 13:29:48 -05:00
parent 86535bbfbf
commit 0c14b9be06

View File

@@ -95,6 +95,7 @@ fn alarm(time: PyIntRef, _vm: &VirtualMachine) -> u32 {
prev_time.unwrap_or(0)
}
#[cfg_attr(feature = "flame-it", flame)]
pub fn check_signals(vm: &VirtualMachine) -> PyResult<()> {
if !ANY_TRIGGERED.swap(false, Ordering::Relaxed) {
return Ok(());