def memoryLeaksSafeDump(id, _): curTime = time.time() if not GCDUMP_CROWBAR_SWITCH: gcDump() if time.time( ) - curTime > LEAKS_DETECTOR_MAX_EXECUTION_TIME or GCDUMP_CROWBAR_SWITCH: BigWorld.delTimer(id)
def memoryLeaksSafeDump(id, _): curTime = time.time() if not GCDUMP_CROWBAR_SWITCH: gcDump() if time.time() - curTime > LEAKS_DETECTOR_MAX_EXECUTION_TIME or GCDUMP_CROWBAR_SWITCH: BigWorld.delTimer(id)