Profiling (4)

The questionThe plot or zone
Audio: which stage of a tick or an update cost the time?the audio sinks, audio sink open, audio sink underrun, audio sink full, audio no sink, audio answer buffer small, audio voice inactive, audio out append, audio out no release, audio update failed, audio denoise and audio downmix 5.1 zones with audio tick late us, audio render us, audio out tick us, audio sort us, audio voices us, audio sinks us, audio out releases, audio update in us, audio update dsp us, audio update out us, audio denoise us, audio downmix us, audio underruns and audio voice starve
Platform: what did input, the overlay and the platform's own work cost?the plat frontend frame, plat SDL event pump, plat gamepad scan, plat gamepad open, plat gamepad close, plat input record open, plat scripted input, plat connect join, plat connect tick, plat hud draw, plat overlay toast lay, plat overlay menu lay, plat overlay draw, plat vpad draw and plat vpad showcase draw zones, with plat SDL events, plat script held bits, plat hud quads, plat overlay quads, plat vpad quads and plat vpad showcase quads. The platform's own work adds the plat screenshot, plat log cut, plat page protect, plat ww open, plat trap open, plat trap arm, plat trap continue, plat trap fill, plat vm commit and plat profile write zones, with plat log cut bytes, plat pages protected, plat pages opened, plat pages armed, plat trap fill bytes, plat vm commit KB and plat profile samples
Audio: how long did opening an output sink take?audio sink open us
GPU: how long did a channel park, and how many methods did a job run?gpu park wait us, gpu job methods, the gpu engine 3d methods, gpu engine compute methods, gpu engine i2m methods, gpu engine 2d methods and gpu engine dma methods plots, and the gpu wait met and gpu wait timeout zones
Network: which call waited, how much data moved, and how long did a DNS lookup, TLS step, room join or LAN connect take?net accept wait ms, net poll wait ms, net select wait ms, net recv wait ms, net recv bytes, net send wait ms, net send bytes, net dns ms, net ssl poll wait ms, net tls handshake us, net tls record us, net room join ms, net ldn connect ms, net nifm online
nn: how much paced file I/O and codec output did a call ask for?nn fs pace ms, nn fs read bytes, nn fs write bytes, nn codec out bytes
NVN: how long did a sync or a surface acquire wait?nvn sync wait us, nvn acquire wait us
Runtime stats: how often did the guest's busiest SVC, count or hook change?rt gstat top change/s
SVCs: which service call waited or took time?svc am keyboard wait ms, svc ldr nro us, svc nvideo decode us, svc nvideo submit bytes, svc nvideo vt wait ms, svc vi dequeue wait ms, svc vi transact us
Vulkan pipelines: which draws or passes were skipped, how many commands were recorded, and how were shader objects made?vk pipe draw skipped, vk pipe pass skipped, vk pipe record commands, vk pipe shader object ms, vk pipe shader object from binary, vk pipe desc frame cache hit per lookup
Present: how many bytes moved, and what did mirroring, HDR and query reads cost?vk pres blit bytes, vk pres dma bytes, vk pres capture tile bytes, vk pres nvdec bytes, vk pres vic bytes, vk pres writeback bytes, vk pres hdr, vk pres mirror harvest bytes, vk pres mirror harvest left pages, vk pres mirror harvest wait ms, vk pres mirror land ms, vk pres mirror land pages, vk pres mirror mem need ms, vk pres query read stall ms, vk pres query read stalls

Many zones carry a small code as their value and name the reason in the zone's text or in a message. A skipped draw's value says why it was skipped, a core handoff's text says which core took which waiter, and a memory SVC's text says what it refused. Group a zone by its value to rank the reasons, then read the zone's text or the message for the reason a given frame took. Some rare decisions have a zone or a message of their own, so they show as their own rows in the Statistics window rather than inside a count.

The two GPU-queue idle plots are apart on purpose: gpu thread idle is the GPU thread's own job-queue wait, and gpu idle: are the graphics queue's execution idle, which the frame's own work and its waits between them give.


Made from docs/dev/development.md at 69237645142c. GPL-3.0-or-later.