mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
make hotkey-driven garbage reporting dev-only
This commit is contained in:
parent
d92008a76d
commit
294e536d65
@ -553,6 +553,8 @@ def checkForGarbageLeaks():
|
||||
return numGarbage
|
||||
|
||||
def b_checkForGarbageLeaks(wantReply=False):
|
||||
if not __dev__:
|
||||
return 0
|
||||
# does a garbage collect on the client and the AI
|
||||
# returns number of client garbage leaks
|
||||
# logs leak info and terminates (if configured to do so)
|
||||
|
Loading…
x
Reference in New Issue
Block a user