Properties
Private _frameAdjust
_frameAdjust: number
Private _markerNameToIdMap
_markerNameToIdMap: Map<string, number> = new Map<string, number>()
Private _rectShape1
_rectShape1: Shape = new egret.Shape()
Private _rectShape2
_rectShape2: Shape = new egret.Shape()
Private _rectShape3
_rectShape3: Shape = new egret.Shape()
Private _rectShape4
_rectShape4: Shape = new egret.Shape()
Private _rectShape5
_rectShape5: Shape = new egret.Shape()
Private _rectShape6
_rectShape6: Shape = new egret.Shape()
Private _updateCount
_updateCount: number
Private frameCount
frameCount: number
Private sampleFrames
sampleFrames: number
showLog
showLog: boolean = false
Private stopwacth
stopwacth
: Stopwatch = new stopwatch.Stopwatch()
targetSampleFrames
targetSampleFrames: number
Static Private _instance
_instance: any
Static Readonly autoAdjustDelay
autoAdjustDelay: 30 = 30
Static Readonly barHeight
barHeight: 8 = 8
Static Readonly barPadding
barPadding: 2 = 2
Static Readonly logSnapDuration
logSnapDuration: 120 = 120
Static Readonly maxBars
maxBars: 8 = 8
Static Readonly maxNestCall
maxNestCall: 32 = 32
Static Readonly maxSampleFrames
maxSampleFrames: 4 = 4
Static Readonly maxSamples
maxSamples: 256 = 256
通过使用这个类,您可以直观地找到瓶颈和基本的CPU使用情况。