{
  "product": "litegauge",
  "measured_at": "2026-10-01",
  "device": "Mac16,12 / Apple M4 / macOS 27.2",
  "size": {
    "download_bytes": 1664267,
    "download_mb": 1.59,
    "installed_bytes": 1900544,
    "installed_mb": 1.81,
    "download_file": "LiteGauge-0.1.2-arm64.zip"
  },
  "compare": [],
  "version": "0.1.2 (3)",
  "data": "公证发行版；菜单收起，CPU/内存每2秒、磁盘每60秒；测量已连续运行约13小时的常驻实例（非刚启动），M4/16 GiB 日常负载",
  "artifact": {
    "bundle_id": "cyou.tianli.litegauge",
    "executable_sha256": "e5dca53e1130d47180d99f8d93bab1a1a7ba6b0cfae7764060fea32ea5919a04",
    "distribution": "Developer ID signed and Apple notarized v0.1.1 release"
  },
  "speed_cold_start": {
    "status": "未测",
    "reason": "首个 CPU 读数已测 5 次；完整冷启动需退出常驻实例，未做。"
  },
  "why": "原生 AppKit；无第三方运行依赖和网络请求；CPU/内存共用2秒采样器，磁盘容量缓存60秒；数值变化时才重绘。",
  "why_en": "Native AppKit; no third-party runtime or network requests; shared 2-second CPU/memory sampling, 60-second disk-capacity cache, redraw only on visible-value changes.",
  "data_en": "Notarized release; menu closed; CPU/memory every 2 seconds and disk every 60 seconds. Measured on the resident instance after about 13 hours of running (not freshly launched); 60-second CPU window, footprint read in the same pass.",
  "targets": {
    "memory_decimal_mb": 30,
    "cpu_pct": 0.3,
    "note": "CPU 为初始优化目标；以 idle.cpu_pct 的实际值判定，不把目标写成实测。"
  },
  "menu_bar": {
    "width_points": 56,
    "previous_width_points": 210,
    "layout": "CPU上下两行，内存与磁盘各一根竖条"
  },
  "host_loadavg": "{ 4.34 3.72 3.66 }",
  "verification": {
    "core_tests": 14,
    "cli": "Installed CLI JSON and errors verified",
    "mutation": "Incorrect CPU formula rejected",
    "ui": "Real panel rendered offscreen; 0/22/100 percent compact indicator checked on light/dark backgrounds",
    "native_ui": "CUA read timed out; actual menu clicking and real sleep/wake cycle not automated in this session"
  },
  "history": [
    {
      "section": "version",
      "replaced_on": "2026-09-29",
      "reason": "装机：安装了轻量化后的新构建",
      "value": "0.1.0"
    },
    {
      "section": "idle",
      "version": "0.1.0",
      "replaced_on": "2026-09-29",
      "reason": "版本变化；仅本次实测可作为当前证据",
      "value": {
        "process": "30165",
        "footprint_mb": 14.0,
        "main_footprint_mb": 14.0,
        "cpu_pct": 0.86,
        "main_cpu_pct": 0.86,
        "processes": [
          {
            "pid": 30165,
            "name": "main",
            "cpu_pct": 0.859,
            "footprint_peak_mb": 14.0
          }
        ],
        "window_s": 60,
        "scope": "主进程 + XPC 辅助进程 + 子进程合计"
      }
    },
    {
      "section": "speed_gui",
      "version": "0.1.0",
      "replaced_on": "2026-09-29",
      "reason": "版本变化；仅本次实测可作为当前证据",
      "value": [
        {
          "key": "first_sample",
          "label": "进程内首个 CPU 数值（单次）",
          "label_en": "First CPU reading after app setup (single run)",
          "median_ms": 1302.9,
          "runs": 1,
          "headline": true,
          "method": "AppDelegate 初始化至首个有效 CPU 差分；非完整冷启动；含1秒采样窗口"
        }
      ]
    },
    {
      "section": "background",
      "version": "0.1.0",
      "replaced_on": "2026-09-29",
      "reason": "版本变化；仅本次实测可作为当前证据",
      "value": []
    },
    {
      "section": "size",
      "version": "0.1.0",
      "replaced_on": "2026-09-29",
      "reason": "版本变化；旧安装包大小不沿用",
      "value": {
        "installed_bytes": 1826816,
        "installed_mb": 1.74,
        "download_bytes": 1626948,
        "download_mb": 1.55
      }
    },
    {
      "section": "version",
      "replaced_on": "2026-10-01",
      "reason": "装机：安装了轻量化后的新构建",
      "value": "0.1.1 (2)"
    },
    {
      "section": "idle",
      "version": "0.1.1 (2)",
      "replaced_on": "2026-10-01",
      "reason": "版本变化；仅本次实测可作为当前证据",
      "value": {
        "process": "/Applications/LiteGauge.app",
        "footprint_mb": 23.0,
        "main_footprint_mb": 23.0,
        "cpu_pct": 0.98,
        "main_cpu_pct": 0.98,
        "processes": [
          {
            "name": "main",
            "cpu_pct": 0.985,
            "footprint_peak_mb": 23.0
          }
        ],
        "window_s": 60,
        "settle_s": null,
        "measured_at": "2026-09-29",
        "method": "对已长时间运行的实例直接 measure.py idle <PID> --seconds 60 --with-helpers：内存为主进程 + WebKit/XPC 辅助进程 + 子进程同一时刻 phys_footprint 之和的峰值（活动监视器「内存」列同口径），CPU 为这些进程窗口内 CPU 时间增量之和 ÷ 墙钟",
        "load": "负载均值 3.48 28.30 87.90；total = 4096.00M  used = 3411.00M  free = 685.00M"
      }
    },
    {
      "section": "speed_gui",
      "version": "0.1.1 (2)",
      "replaced_on": "2026-10-01",
      "reason": "版本变化；仅本次实测可作为当前证据",
      "value": [
        {
          "key": "first_sample",
          "label": "进程内首个 CPU 数值（5 次中位）",
          "label_en": "First CPU reading after app setup (median of 5)",
          "median_ms": 1238.4,
          "runs": 5,
          "raw_ms": [
            1312.8,
            1239.7,
            1234.0,
            1234.7,
            1238.4
          ],
          "headline": true,
          "method": "已装 0.1.1 以 --benchmark 启动测试实例（后台、不抢焦点），AppDelegate 初始化至首个有效 CPU 差分；非完整冷启动；含 1 秒采样窗口",
          "load": "负载均值 3.54 25.58 84.50",
          "measured_at": "2026-09-29"
        }
      ]
    },
    {
      "section": "size",
      "version": "0.1.1 (2)",
      "replaced_on": "2026-10-01",
      "reason": "版本变化；旧安装包大小不沿用",
      "value": {
        "installed_bytes": 1851392,
        "installed_mb": 1.77,
        "download_bytes": 1638655,
        "download_mb": 1.56
      }
    },
    {
      "section": "idle",
      "replaced_on": "2026-10-01",
      "reason": "本次按记录的采样窗口与辅助进程合计实测",
      "value": {
        "process": "/Applications/LiteGauge.app",
        "footprint_mb": 15.0,
        "main_footprint_mb": 15.0,
        "cpu_pct": 0.0,
        "main_cpu_pct": 0.0,
        "processes": [
          {
            "name": "main",
            "cpu_pct": 0.0,
            "footprint_peak_mb": 15.0
          }
        ],
        "window_s": 60,
        "settle_s": null,
        "measured_at": "2026-10-01",
        "method": "对已长时间运行的实例直接 measure.py idle <PID> --seconds 60 --with-helpers：内存为主进程 + WebKit/XPC 辅助进程 + 子进程同一时刻 phys_footprint 之和的峰值（活动监视器「内存」列同口径），CPU 为这些进程窗口内 CPU 时间增量之和 ÷ 墙钟",
        "load": "负载均值 2.70 3.33 10.34；total = 9216.00M  used = 8000.38M  free = 1215.62M",
        "owner_idle_s_at_start": 7307
      }
    }
  ],
  "env_note": "2026-10-01 主会话逐个顺序测量，负载均值 2.72 3.17 9.50；total = 9216.00M  used = 8000.38M  free = 1215.62M（开始时）；启动时间受负载影响，内存与 CPU 为进程自身数值",
  "measured_artifact": {
    "version": "0.1.2",
    "build": "3",
    "executable_sha256": "66ed618b9bb0a64c31288a6a463343713b44d23a1eb1eeb0d7d0061357afe7ab"
  },
  "idle": {
    "process": "/Applications/LiteGauge.app",
    "footprint_mb": 15.0,
    "main_footprint_mb": 15.0,
    "cpu_pct": 0.0,
    "main_cpu_pct": 0.0,
    "processes": [
      {
        "name": "main",
        "cpu_pct": 0.0,
        "footprint_peak_mb": 15.0
      }
    ],
    "window_s": 60,
    "settle_s": null,
    "measured_at": "2026-10-01",
    "method": "对已长时间运行的实例直接 measure.py idle <PID> --seconds 60 --with-helpers：内存为主进程 + WebKit/XPC 辅助进程 + 子进程同一时刻 phys_footprint 之和的峰值（活动监视器「内存」列同口径），CPU 为这些进程窗口内 CPU 时间增量之和 ÷ 墙钟",
    "load": "负载均值 2.57 3.03 8.97；total = 9216.00M  used = 8000.38M  free = 1215.62M",
    "owner_idle_s_at_start": 7473
  },
  "speed_gui": [
    {
      "key": "first_sample",
      "label": "进程内首个 CPU 数值（5 次中位）",
      "label_en": "First CPU reading after app setup (median of 5)",
      "median_ms": 1215.1,
      "runs": 5,
      "raw_ms": [
        1231.7,
        1221.3,
        1215.1,
        1212.4,
        1213.7
      ],
      "headline": true,
      "method": "已装 0.1.2 以 --benchmark 启动测试实例（open -g -j -n 后台、不抢焦点，按其写出的 pid 结束，不碰常驻实例），AppDelegate 初始化至首个有效 CPU 差分；非完整冷启动；含 1 秒采样窗口",
      "raw": "perf/raw/first-sample-0.1.2-3.json",
      "load": "负载均值 2.50 2.98 8.82；total = 9216.00M  used = 8000.38M  free = 1215.62M",
      "measured_at": "2026-10-01"
    }
  ]
}
