Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ProfileSession Class Reference

Public Member Functions

 __init__ (self, name, func=None, logAfterProfile=False)
 
 acquire (self)
 
 aggregate (self, other)
 
 getAggregate (self)
 
 getDuration (self)
 
 getFunc (self)
 
 getLines (self)
 
 getLogAfterProfile (self)
 
 getName (self)
 
 getReference (self)
 
 getResults (self, lines=Default, sorts=Default, callInfo=Default, totalTime=Default)
 
 getShowCallInfo (self)
 
 getSorts (self)
 
 getTotalTime (self)
 
 profileSucceeded (self)
 
 release (self)
 
 resetTotalTime (self)
 
 run (self)
 
 setAggregate (self, aggregate)
 
 setFunc (self, func)
 
 setLines (self, lines)
 
 setLogAfterProfile (self, logAfterProfile)
 
 setName (self, name)
 
 setShowCallInfo (self, showCallInfo)
 
 setSorts (self, sorts)
 
 setTotalTime (self, totalTime=None)
 

Static Public Attributes

 notify = directNotify.newCategory("ProfileSession")
 
 TrueClock = TrueClock.getGlobalPtr()
 

Protected Member Functions

 _compileStats (self)
 
 _destroy (self)
 
 _discardRamFile (self, filename)
 
 _getNextFilename (self)
 
 _reset (self)
 
 _restoreRamFile (self, filename)
 

Protected Attributes

 _aggregate
 
 _callInfo
 
 _duration
 
 _filename2ramFile
 
 _filenameBase
 
 _filenameCounter
 
 _filenames
 
 _func
 
 _lines
 
 _logAfterProfile
 
 _name
 
 _refCount
 
 _resultCache
 
 _showCallInfo
 
 _sorts
 
 _statFileCounter
 
 _stats
 
 _successfulProfiles
 
 _totalTime
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
name,
func = None,
logAfterProfile = False )

Member Function Documentation

◆ _compileStats()

_compileStats ( self)
protected

◆ _destroy()

_destroy ( self)
protected

◆ _discardRamFile()

_discardRamFile ( self,
filename )
protected

◆ _getNextFilename()

_getNextFilename ( self)
protected

◆ _reset()

_reset ( self)
protected

◆ _restoreRamFile()

_restoreRamFile ( self,
filename )
protected

◆ acquire()

acquire ( self)

◆ aggregate()

aggregate ( self,
other )

◆ getAggregate()

getAggregate ( self)

◆ getDuration()

getDuration ( self)

◆ getFunc()

getFunc ( self)

◆ getLines()

getLines ( self)

◆ getLogAfterProfile()

getLogAfterProfile ( self)

◆ getName()

getName ( self)

◆ getReference()

getReference ( self)

◆ getResults()

getResults ( self,
lines = Default,
sorts = Default,
callInfo = Default,
totalTime = Default )

◆ getShowCallInfo()

getShowCallInfo ( self)

◆ getSorts()

getSorts ( self)

◆ getTotalTime()

getTotalTime ( self)

◆ profileSucceeded()

profileSucceeded ( self)

◆ release()

release ( self)

◆ resetTotalTime()

resetTotalTime ( self)

◆ run()

run ( self)

◆ setAggregate()

setAggregate ( self,
aggregate )

◆ setFunc()

setFunc ( self,
func )

◆ setLines()

setLines ( self,
lines )

◆ setLogAfterProfile()

setLogAfterProfile ( self,
logAfterProfile )

◆ setName()

setName ( self,
name )

◆ setShowCallInfo()

setShowCallInfo ( self,
showCallInfo )

◆ setSorts()

setSorts ( self,
sorts )

◆ setTotalTime()

setTotalTime ( self,
totalTime = None )

Member Data Documentation

◆ _aggregate

_aggregate
protected

◆ _callInfo

_callInfo
protected

◆ _duration

_duration
protected

◆ _filename2ramFile

_filename2ramFile
protected

◆ _filenameBase

_filenameBase
protected

◆ _filenameCounter

_filenameCounter
protected

◆ _filenames

_filenames
protected

◆ _func

_func
protected

◆ _lines

_lines
protected

◆ _logAfterProfile

_logAfterProfile
protected

◆ _name

_name
protected

◆ _refCount

_refCount
protected

◆ _resultCache

_resultCache
protected

◆ _showCallInfo

_showCallInfo
protected

◆ _sorts

_sorts
protected

◆ _statFileCounter

_statFileCounter
protected

◆ _stats

_stats
protected

◆ _successfulProfiles

_successfulProfiles
protected

◆ _totalTime

_totalTime
protected

◆ notify

notify = directNotify.newCategory("ProfileSession")
static

◆ TrueClock