From d1d6d3f1a39211acd5b6bf191799ad361064cc5d Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Wed, 25 Oct 2006 23:50:09 +0000 Subject: [PATCH] removed guppy from pyutil --- direct/src/showbase/PythonUtil.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index 28b9f085aa..ff43d887b0 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -36,7 +36,6 @@ import sys import random import time import new -import guppy if __debug__: import traceback @@ -46,23 +45,6 @@ from direct.directutil import Verify ScalarTypes = (types.FloatType, types.IntType, types.LongType) - -class MemoryChecker(object): - def getHeap(self): - if(not self.__dict__.get("hp",0)): - self.hp=guppy.hpy() - return self.hp - def getClassesByType(self,inType): - hp=self.getHeap() - objHeap=hp.heap() & inType - outArr=[] - for i in range(objHeap.byid.count): - outArr.append(objHeap.byid[i].theone) - return outArr - - - - def enumerate(L): """Returns (0, L[0]), (1, L[1]), etc., allowing this syntax: for i, item in enumerate(L):