FrameSample
| Kind | typedef |
| Package | debug |
| Full name | debug.FrameSample |
| Source | source/debug/FrameProfiler.hx |
Per-frame sample snapshot captured by the Phoenix Engine frame profiler.
Units & Semantics:
- All durations are in milliseconds.
- Exclusive durations (
updateTimeMs,renderTimeMs,audioTimeMs,gcPauseMs): Nested child phase durations are subtracted from their enclosing parent phase via an explicit LIFO phase stack (phaseStack). - Inclusive durations (
updateInclusiveMs,renderInclusiveMs,audioInclusiveMs,gcInclusiveMs): Total time spent inside the outermost activation(s) of each phase, including nested child phases. gcPauseMsandgcCount/explicitGcCountreflect directly measured GC pauses.implicitGcCountcounts observed negative heap-delta intervals outside explicit GC scopes (heuristic indicator of uninstrumented collection, not an exact cycle count).rssSampledistruewhen process RSS was freshly sampled on this frame andfalsewhen carried forward from the previous periodic RSS sample.
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
frameIndex | Int | no |
timestampMs | Float | no |
frameTimeMs | Float | no |
workTimeMs | Float | no |
fps | Float | no |
rollingFps | Float | no |
updateTimeMs | Float | no |
renderTimeMs | Float | no |
audioTimeMs | Float | no |
gcPauseMs | Float | no |
otherTimeMs | Float | no |
updateInclusiveMs | Float | no |
renderInclusiveMs | Float | no |
audioInclusiveMs | Float | no |
gcInclusiveMs | Float | no |
allocBytes | Float | no |
allocCount | Int | no |
gcReclaimedBytes | Float | no |
netHeapDeltaBytes | Float | no |
heapUsedBytes | Float | no |
heapReservedBytes | Float | no |
rssBytes | Float | no |
peakRssBytes | Float | no |
gcCount | Int | no |
explicitGcCount | Int | no |
implicitGcCount | Int | no |
drawCalls | Int | no |
updateSteps | Int | no |
rssSampled | Bool | no |
stateName | String | no |