Skip to content

Commit 0c14b9b

Browse files
committed
Add flame attribute to check_signals
1 parent 86535bb commit 0c14b9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vm/src/stdlib/signal.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ fn alarm(time: PyIntRef, _vm: &VirtualMachine) -> u32 {
9595
prev_time.unwrap_or(0)
9696
}
9797

98+
#[cfg_attr(feature = "flame-it", flame)]
9899
pub fn check_signals(vm: &VirtualMachine) -> PyResult<()> {
99100
if !ANY_TRIGGERED.swap(false, Ordering::Relaxed) {
100101
return Ok(());

0 commit comments

Comments
 (0)