chore(台账): 恒剥修正让 Code 少 4 B,机器回填内存台账与同码凭证(#73)
CI / 静态门禁 (pre-commit) (push) Failing after 4m45s
CI / 主机侧单测 (MSVC) (push) Successful in 44s
CI / 静态门禁 (pre-commit) (pull_request) Failing after 5m16s
CI / 主机侧单测 (MSVC) (pull_request) Successful in 43s

剥头判据简化(去掉一次形态判断与一次比较)之后,产品构型 `Code` 从 249,124 变到
249,120,`ER_IROM1` 278,960 → 278,956、ROM 合计 281,012 → 281,008;`RW` / `ZI`
一字未动。台账里那些数字是受管区,按仓库约定不手改:

- `python scripts/check_mem_numbers.py --write` 回填 `docs/内存管理/RAM使用分析与优化方案.md`,
  `--scan` 复跑 exit 0;
- `python scripts/ram_baseline.py --write` 回填 `docs/内存管理/RAM预算台账.md`,
  `--gate` 现在 **PASS:RW_IRAM1 72.2 % / RW_CCM 87.9 %(阈值 92 %)**;
- `python scripts/ram_baseline.py --update` 追加 2026-11-04 趋势行,并写出本轮
  体积同码凭证 `scripts/size_attestation.json`(索引指纹 2f112c1679d6…,1468 个文件)。
This commit is contained in:
2026-11-04 09:25:49 +08:00
parent f10bb8df65
commit fe4f0db01c
4 changed files with 15 additions and 14 deletions
+11 -11
View File
@@ -1,25 +1,25 @@
{
"built_at": "2026-11-02T22:19:57+08:00",
"fingerprint": "19f80087a70f1c74afb1d71fb6d754b4b647321da90b312068144a8f31a9a935",
"fingerprint_files": 1466,
"built_at": "2026-11-04T09:25:23+08:00",
"fingerprint": "2f112c1679d6145a49f70f6f208ade9a1e4fa573aad3cacdaa98b0ed2aac6855",
"fingerprint_files": 1468,
"fingerprint_source": "git-index",
"gated_regions": [
"RW_IRAM1",
"RW_CCM"
],
"git_head": "b8e1de5f2e2515b528b0af21bcb8b423a406b8f2",
"git_head": "f10bb8df659e201efbacf04978c7442493fe94df",
"map": "MDK-ARM/STM32F407-Demo/STM32F407-Demo.map",
"map_mtime": 1793629184,
"map_mtime": 1793753528,
"pct": {
"ER_IROM1": 26.45,
"ER_IROM1": 26.6,
"RW_CCM": 87.89,
"RW_IRAM1": 72.0,
"RW_IRAM1": 72.19,
"UNINIT_CCM": 18.75
},
"regions": {
"ER_IROM1": {
"max": 1048576,
"size": 277384
"size": 278956
},
"RW_CCM": {
"max": 65280,
@@ -27,7 +27,7 @@
},
"RW_IRAM1": {
"max": 131072,
"size": 94368
"size": 94624
},
"UNINIT_CCM": {
"max": 256,
@@ -37,10 +37,10 @@
"schema": 2,
"scope_note": "\u540c\u7801\u51ed\u8bc1\uff1a\u6307\u7eb9\u8986\u76d6\u56fa\u4ef6\u4f53\u79ef\u76f8\u5173\u6e90\u7801\uff0c\u53e3\u5f84\u89c1\u672c\u811a\u672c docstring",
"sizes": {
"code": 247548,
"code": 249120,
"ro_data": 29836,
"rw_data": 2052,
"zi_data": 149740
"zi_data": 149996
},
"threshold_pct": 92.0,
"worktree_dirt_at_stamp": 0,