make hotkey-driven garbage reporting dev-only

This commit is contained in:
Darren Ranalli 2010-05-07 22:50:23 +00:00
parent d92008a76d
commit 294e536d65

View File

@ -553,6 +553,8 @@ def checkForGarbageLeaks():
return numGarbage return numGarbage
def b_checkForGarbageLeaks(wantReply=False): def b_checkForGarbageLeaks(wantReply=False):
if not __dev__:
return 0
# does a garbage collect on the client and the AI # does a garbage collect on the client and the AI
# returns number of client garbage leaks # returns number of client garbage leaks
# logs leak info and terminates (if configured to do so) # logs leak info and terminates (if configured to do so)