def mark(self, event):
        """
        Manually append *event* to the recorded events.
        *event* can be formatted using format().
        """
        count = self._counts[event] + 1
        self._counts[event] = count
        self._events.append(event.format(count=count))

        Manually append *event* to the recorded events.
        *event* can be formatted using format().
        
numba/tests/test_obj_lifetime.py