Browse Source

removed guppy from pyutil

Zachary Pavlov 19 years ago
parent
commit
d1d6d3f1a3
1 changed files with 0 additions and 18 deletions
  1. 0 18
      direct/src/showbase/PythonUtil.py

+ 0 - 18
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):