| The question | The plot or zone |
|---|---|
| Why is this frame slow? | frame ms, jit compile ms and jit miss ms (a compile the game waited for), pipeline make ms and pipeline wait ms, shader translate ms, texture uploads (bytes) and texture upload count, render targets made, vk finish ms, texture pipeline count and texture pipeline ms, shaders |
| Is the GPU or the CPU the bound? | the GPU track's passes and gpu gap: plots beside frame ms and the CPU's own zones |
| Where does the GPU's time go? | the pass zones, gpu gap: dispatches/copies/barriers/nothing, gpu idle: waited/frame/recording/queued, gpu busy (a percentage), gpu submissions/frame, copy MB; gpu round: splits the CPU's waits by kind, gpu hold: the busy time by what it held, gpu submit: the submissions by reason |
| Which draw of that pass? | the GPU track's draw zones in a connected Tracy run; the log says how many passes went untimed |
| What does the guest cost the host? | guest cpu and process cpu (of one processor), guest threads, guest top thread ms, top svc 0/s to top svc 5/s and top hook 0/s to top hook 4/s (a message names each rank) |
| What does the game ask of the kernel? | the SVC zones with their result on error, and svc/s, svc miss/s |
| Which IPC commands cost the most? | ipc req/s, ipc handler ms, ipc commands, ipc other req/s, and ipc top 0 ms to ipc top 7 ms (a message names each rank). The counters are kept while a profiler is attached as well as at log=2 |
| What does the JIT do? | jit compile ms, jit batch size, jit batch functions, jit instructions, jit code KiB, jit compiled pcs, jit batches, jit cache loads, jit queue depth, jit variant hits and jit variant misses, jit failures, jit dropped batches |
| What does NCE do? | the nce hook zones and nce outcalls/s, nce hooks/s, nce kicks/s, nce svc/s, nce trap/s, nce ticks/s, nce run/s |
| Is the audio behind or clipping? | audio queued ms, audio underruns, audio frame ms, and the audio voice zones |
| What does host1x's worker do? | the host1x job zones, with the engine, the class and the syncpoint value |
| Is the host running out of memory? | host heap (the allocator's live bytes), host rss, host free |
| How much of a frame does the GPU's hold on guest memory cost, and was a stall a landing? | the own land zones (the bytes and the ranges each lands), own bytes, own traps/s, own land MB/s |
| Does the texture cache serve a level, or is the same texture encoded and uploaded again? | the texture BC7 encode zones, texture cache hits/s, texture cache misses/s, texture upload MB/s, texture frees/s |
| Which wait held a thread back, a syncpoint, a present's fence or the display's pace? | syncpt wait ms, present fence wait ms, present pace ms, syncpt waits/s, syncpt timeouts/s, and a message names a syncpoint that waited more than a millisecond |
| Does the input tick cost anything, and which voice or part of the audio frame is its cost? | the hid update zone with the states it wrote, hid updates/s, the audio voice zones with their microseconds, audio mix ms beside audio frame ms |
| Is the input and output keeping up? | io read MB/s, io write MB/s, guest memory |
| Is a frame being dropped or a queue growing? | submits pending, compute pending, draws, dispatches |
| What CPU work does a resource take? | vk resource: for image requirements, allocation and destruction, target setup and reload, surface reclaim, and buffer maintenance and cache build, each in ms per frame |
| Which GPU wait held a present back? | gpu wait: finish/recycle/submit ms per frame |
| Compute: why did the CPU wait for a compute batch? | the vk compute wait zone with vk pipe compute wait pending ms per wait, vk pipe compute wait land ms per wait and vk pipe compute wait game ms per wait |
| Hooks: what does a hooked copy or a native wait cost? | the hook mem copy and hook mem set zones (the bytes and the library function in the text), hook os sleep ms, hook os cs contention ms, hook os cv wait ms, hook mutex contention ms, hook cv wait ms, hook cv timed wait ms and hook sleep ms. hook os sleep skip, hook os cv no wait, hook mutex try and hook recursive try mark a rare decision, and hook os cv timeout, hook cv already expired, hook cv timed out and hook sleep none a rare outcome |
| Kernel: which core handed a thread off, and what kind of wait held it? | the kern core handoff, kern core switch, kern core yield, kern mutex handoff and kern cv take mutex zones (the core and the waiter in the text), kern core wait ms, kern wait sleep ms, kern wait objects ms, kern wait mutex ms, kern wait cv ms, kern wait addr ms, kern wait pause ms and kern preempt late ms |
| SVCs: what did a memory SVC decide? | the kern set perm, kern set attr, kern gpu attr, kern map memory, kern unmap memory, kern map process and kern unmap process zones, with the bytes as the value and a refusal in the zone's text. kern set heap carries MiB, not bytes, and kern code memory carries the operation code, not a size |
| NVN: which command cost the most to record, and why was a draw skipped? | the nvn cmd copy commands, nvn cmd dlss, nvn cmd spill segment, nvn cmd out of memory, nvn cmd tex snap missing and nvn queue finish zones with gpu nvn cmd records, gpu nvn cmd bytes and gpu nvn replay records. The nvn draw arrays, nvn draw mesh, nvn draw elements, nvn clear texture, nvn dispatch, nvn draw texture, nvn dma copy and nvn buffer texture copy zones carry the skip reason as the value, and nvn copy record names the kind of copy |
| Shaders: which phase of a translation cost the time? | the shader translate sm86 and shader translate maxwell zones with shader sm86 translate us and shader maxwell translate us; the shader decode, shader cbuf fold, shader dataflow, shader control stack, shader structure, shader alloc and shader emission zones, with shader instructions, shader branches, shader blocks, shader cb fold hit, shader cb fold miss, shader flow fallback, shader sample-invariant and shader translate failures. shader translate maxwell takes a call stack when tracy_zone_callstack is set |
| Descriptors: what did a descriptor write do? | the vk descriptor writes, vk descriptor reap, vk descriptor border acquire, vk descriptor object insert, vk descriptor object shared and vk descriptor buffer write zones with vk pipe desc reaped, vk pipe desc frame cache hit per lookup, vk pipe desc lasting lookup, vk pipe desc write words and vk pipe desc object found |
| Pipelines: which stage of a build cost the time? | the pipeline make, pipeline make compile, pipeline make compile callstack, pipeline whole make, pipeline library make, pipeline optimize, pipeline entry lookup, shader cache records, vk pipe libraries choice and vk pipe stats write zones with vk pipe make ms, vk pipe make cache hit, vk pipe whole make ms, vk pipe whole cache hit, vk pipe lib make ms, vk pipe lib cache hit, vk pipe cached lookup ms, vk pipe cached hit, vk pipe fast link ms, vk pipe fast link cache hit, vk pipe optimize ms, vk pipe optimize cache hit, vk pipe cache read bytes, vk pipe shader cache hit bytes, vk pipe shader cache miss, vk pipe shader cache read bytes and vk pipe shader cache write bytes. pipeline make compile callstack takes a call stack when tracy_zone_callstack is set |
| ASTC: how many uploads were transcoded, and how much memory did the results take? | the vk mem astc bc7, vk mem astc bcn and vk mem astc rgba8 zones (the block dimensions in the text) with vk mem astc uploads and vk mem astc MB per frame |
| The allocator: when did a pool or a driver allocation grow? | the vk mem block new, vk mem block find, vk mem BL scratch trim, vk mem budget cap, vk mem space take and vk mem space give zones with vk mem blocks made, vk mem blocks MB, vk mem driver allocs, vk mem driver MB, vk mem driver ms and the vk mem block table grown message |
| Save states: which stage of a save or a load cost the time? | the state gather, state section read, state memory check, state memory load, state shmem, state compress, state save refused, state write refused and state load refused zones with rt state gather bytes, rt state save ms, rt state load bytes, rt state load check ms, rt state load ms, rt state write copied, rt state write file and rt state read copied |
| NCE: what did patching do, and which pattern fired or got rejected? | the nce patch, nce scan, nce hook, nce hook added, nce hook duplicate, nce hook rejected, nce refused and nce net none zones with rt nce patch ms, rt nce patch sites, and the rt nce pat none fired to rt nce pat hook fired and rt nce pat none rejected to rt nce pat hook rejected plots, one for each of the nine pattern kinds |
| Present: which wait held a present back? | the present schedule, present refresh, present delayed, present free and present dropped zones and the vk pres gpu wait, vk pres gpu trace and vk pres hdr off zones with rt present sleep ms, vk pres gpu stall ms, vk pres gpu stalls, vk pres display wait ms, vk pres display latency ms, vk pres display polls, vk pres display let go, vk pres acquire outcome, vk pres finish ms and vk pres maintenance ms |
| Video: what did a decode job cost, and why was a slot or job skipped? | the video nvdec job, video nvdec ffmpeg, video nvdec rewrite bits, video nvdec decoder full, video nvdec codec change, video vic job, video vp9 uncompressed header, video vp9 compressed header and video vp9 rebuild zones with video vic job ms, video nvdec job ms, video host1x waits, video host1x queue waits, video pictures decoded, video pictures total, video nvdec failures, video vic slot skipped, video vic slots and video vic outcome |
Made from docs/dev/development.md at 69237645142c. GPL-3.0-or-later.