use FunctionCall.pushCurrentState

This commit is contained in:
Darren Ranalli 2009-07-06 21:46:23 +00:00
parent caca39b04a
commit 57e08fadf2
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class FrameProfiler:
assert (self._logSchedule[j] % e) == 0
assert isInteger(self._period)
self._enableFC = FunctionCall(self._setEnabled, taskMgr.getProfileFramesSV())
self._enableFC.pushCurrentState()
def destroy(self):
self._enableFC.set(False)

View File

@ -91,6 +91,7 @@ class TaskProfiler:
def __init__(self):
self._enableFC = FunctionCall(self._setEnabled, taskMgr.getProfileTasksSV())
self._enableFC.pushCurrentState()
# table of task name pattern to TaskTracker
self._namePrefix2tracker = {}
self._task = None