def recordSignal(self, sig_num, sig_frame): """ Given the two values passed into a `signal` handler, record an occurence of the signal. """ if self.disabled: return occ = Occurrence.from_signal(sig_num, sig_frame) self.record(occ)