What coverage measures here

Coverage counts the runtime's own C and C++ code: the HLE kernel and services, the SVCs, the NVN and Maxwell front ends, the Vulkan renderer, the shader translators, the loaders, the recompiler's driver and native back ends. It does not count a game's code. The recompiled module (<id>_code.so) and the code the JIT compiles are made by the recompiler, not by the compiler that instruments the build. What a game's code reaches is a different question, answered by the static censuses and the log.

Two processes contribute to a game's run:

ProcessWhat it covers
The driver (scarletnx -r, or the first step of scripts/amberlith.py)nx/loader, common/cpu (decoder, function discovery, the native back end, the linker), nx/runtime/driver
The game's runtime (recompiled/<id>/<id>, a copy of the same scarletnx)everything the game asks for at run time

Both are the same binary, so one llvm-cov call reads both profiles against build/cov/scarletnx.


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