Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
add a warning here
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Mar 3, 2012
1 parent e87eade commit a0d62c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/tracebin/recorder.py
Expand Up @@ -159,6 +159,9 @@ def on_profile(self, frame, event, arg):
elif event == "return" or event == "c_return":
event_id = RETURN_EVENT
content = struct.pack("=BBd", PROFILE_IDENTIFIER, event_id, time.time())
else:
self.log.warning("[profile] Unknown event: %s" % event)
return

if self._current_profile_mmap.tell() + len(content) > len(self._current_profile_mmap):
self._new_mmap()
Expand Down

0 comments on commit a0d62c9

Please sign in to comment.