diff --git a/CHANGELOG.md b/CHANGELOG.md index 09076cc..97182eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/); until 1.0, minor versions may contain breaking changes. +## [Unreleased] + +### Changed + +- **Server binary keeps its symbols and line tables** (`strip = "none"`, `debug = "line-tables-only"` in the release profile), so a stack sample of the running server can be resolved to functions. The binary is a few tens of MB larger. + ## [v202611-00078] – 2026-11-21 ### Fixed diff --git a/Cargo.toml b/Cargo.toml index a7a9121..6985ce6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,10 @@ members = ["core", "server", "cli"] [profile.release] opt-level = 3 +# Symbols and line tables stay in the binary, so a hot thread can be resolved with eu-stack / addr2line +# on the running server (the file grows by a few tens of MB). +strip = "none" +debug = "line-tables-only" # The command line client is small and self-contained. [profile.release.package.codecraft-cli] diff --git a/web/src/whatsnew.ts b/web/src/whatsnew.ts index e3399b3..f91b66f 100644 --- a/web/src/whatsnew.ts +++ b/web/src/whatsnew.ts @@ -3,6 +3,10 @@ * under "unreleased"; scripts/release.sh renames the key to the release version. */ export const WHATS_NEW: Record = { + unreleased: { + en: ["The server binary keeps its symbols (for diagnosing a high CPU load); no change in behaviour"], + de: ["Das Server-Binary behält seine Symbole (zur Diagnose einer hohen CPU-Last); keine Änderung im Verhalten"], + }, "202611-00078": { en: ["Fixed: leftover zombie processes in the container; the Telegram bot token no longer appears in error logs"], de: ["Behoben: übrig gebliebene Zombie-Prozesse im Container; der Telegram-Bot-Token taucht nicht mehr in Fehlerlogs auf"],