Development · Amberlith · build · profiling.
This page is a guide to measuring which of ScarletNX's own code a workload runs: Amberlith's suites, the tests, a game. The goal is the project's surface area: which services, SVCs, renderer paths and loader branches anything exercises, and which nothing does. Those last are the unaccounted-for paths: code that has never run under any check, so a bug in it shows up first in a player's game.
The examples use LLVM's source-based coverage (clang -fprofile-instr-generate -fcoverage-mapping, llvm-profdata,
llvm-cov). gcov and GCC gives the GCC route. The numbers quoted are from a FreeBSD 15.1 machine
with Clang 23, at origin/main of 2026-11-15; yours will differ by commit and host.
Profiles, reports and the recompiled programs they came from stay local, like the games: keep them in the
gitignored work/.
Made from docs/dev/coverage.md at 69237645142c. GPL-3.0-or-later.