removed guppy from pyutil

This commit is contained in:
Zachary Pavlov 2006-10-25 23:50:09 +00:00
parent 32bc2dfe11
commit d1d6d3f1a3
1 changed files with 0 additions and 18 deletions

View File

@ -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):