Skip to content

Releases: StruggleYang/PowerCumul

PowerCumul 0.11

Choose a tag to compare

@github-actions github-actions released this 07 Sep 04:28

PowerCumul v0.11

Mac mini 用电累计监控 —— 轻量菜单栏 App。

安装

  1. 下载 PowerCumul-0.11.dmg
  2. 打开 DMG,把 PowerCumul 拖到「应用程序」
  3. 首次打开:右键点击 App → 打开 → 仍要打开(仅一次,绕过 Gatekeeper)
  4. 运行后点状态栏 ⚡ 图标 → 面板里「一键配置权限」

该版本为 ad-hoc 签名(无 Apple Developer 账号),首次打开需手动信任。

Full Changelog: v0.10...v0.11

PowerCumul 0.10

Choose a tag to compare

@github-actions github-actions released this 05 Sep 07:37

PowerCumul v0.10

Mac mini 用电累计监控 —— 轻量菜单栏 App。

安装

  1. 下载 PowerCumul-0.10.dmg
  2. 打开 DMG,把 PowerCumul 拖到「应用程序」
  3. 首次打开:右键点击 App → 打开 → 仍要打开(仅一次,绕过 Gatekeeper)
  4. 运行后点状态栏 ⚡ 图标 → 面板里「一键配置权限」

该版本为 ad-hoc 签名(无 Apple Developer 账号),首次打开需手动信任。

Full Changelog: v0.09...v0.10

PowerCumul 0.09

Choose a tag to compare

@github-actions github-actions released this 05 Sep 04:46

PowerCumul v0.09

Mac mini 用电累计监控 —— 轻量菜单栏 App。

安装

  1. 下载 PowerCumul-0.09.dmg
  2. 打开 DMG,把 PowerCumul 拖到「应用程序」
  3. 首次打开:右键点击 App → 打开 → 仍要打开(仅一次,绕过 Gatekeeper)
  4. 运行后点状态栏 ⚡ 图标 → 面板里「一键配置权限」

该版本为 ad-hoc 签名(无 Apple Developer 账号),首次打开需手动信任。

Full Changelog: v0.08...v0.09

PowerCumul 0.08

Choose a tag to compare

@github-actions github-actions released this 03 Sep 10:11

PowerCumul v0.08


English

What's New (since v0.07)

  • Top 10 Consumers, merged per app: the panel now lists the top 10 power-draining apps plus an "Other" tail (was top 5). Helper/renderer sub-processes are folded into their parent app — "Google Chrome Helper (Renderer)" and friends now count as one "Google Chrome", including data already recorded by v0.07.
  • Interactive chart: hover for an exact value tooltip; click any bar to pin the Top Consumers list to that hour/day (click again to release). The title shows the selected bucket, and switching ranges clears the selection.
  • Data management menu (right-click → Data): reset cumulative counters (chart history kept), back up / restore the three data files, and reveal the data folder in Finder.
  • Raw-sample retention: raw samples.jsonl now rolls over, keeping 7 days (aggregated hour/day buckets keep full history — charts unaffected). The file shrinks from tens of MB to ~12 MB.
  • status.json for integrations: every minute the app atomically writes a snapshot (live power, today/total kWh, estimated cost, top 10 consumers, uptime; ISO 8601 timestamps) into the data folder — ready for scripts, Grafana and home-automation polling. No network service involved.
  • Sustained process alert (off by default): when system power exceeds your threshold and a single process holds ≥50% of the energy score for 5 minutes, you get one notification (30-min cooldown per process). Enable via right-click → "Process Power Alert".
  • Status bar color cue: the bolt icon turns red while power is at/above your alert threshold.

Update

v0.07 users: right-click ⚡ → "Check for Updates…" — in-app one-click upgrade.

Install

  1. Download PowerCumul-0.08.dmg · drag to Applications
  2. First launch: right-click app → Open → Open Anyway (once)

中文

新功能(相比 v0.07)

  • 耗电应用 TOP 10(按应用合并):列表从 TOP 5 扩到 TOP 10 + 「其他」行。Helper/Renderer 子进程归并到主应用——「Google Chrome Helper (Renderer)」等现在计为一个 Google Chrome,v0.07 已记录的历史数据同样生效。
  • 图表可交互:悬停显示精确数值气泡;点击任意柱把 TOP 列表锁定到该小时/当天(再次点击取消),标题显示选中时段,切换区间自动清除。
  • 数据管理菜单(右键 →「数据」):重新累计(保留图表历史)、备份/恢复三个数据文件、在 Finder 中查看数据目录。
  • 原始样本滚动清理:samples.jsonl 只保留 7 天(小时/天聚合桶保留完整历史,图表不受影响),文件从数十 MB 降到约 12 MB。
  • status.json 对接外部:每分钟原子写出一个快照(实时功率、今日/累计电量、估算费用、TOP 10 应用、运行时长,ISO 8601 时间戳)到数据目录,可直接被脚本、Grafana、自动化轮询,不引入任何网络服务。
  • 进程持续高耗电告警(默认关):整机功率超过阈值且单个进程持续 5 分钟占据能耗分半数以上时通知一次(同进程 30 分钟冷却),右键 →「进程耗电告警」开启。
  • 状态栏颜色提示:功率达到告警阈值时闪电图标变红,回落后还原。

升级

v0.07 用户:右键 ⚡ →「检查更新…」应用内一键升级。

安装

  1. 下载 PowerCumul-0.08.dmg · 拖入「应用程序」
  2. 首次打开:右键 App → 打开 → 仍要打开(仅一次)

PowerCumul 0.07

Choose a tag to compare

@github-actions github-actions released this 01 Sep 07:09

PowerCumul v0.07


English

What's New (since v0.06)

  • Top Consumers panel: a new "Top Consumers" section under the power trend chart — the top 5 power-draining apps plus an "Other" tail for the selected range (24H/7D/30D), each with a share bar, percentage and attributed Wh. Follows the chart's range selector instantly.
  • Per-process energy attribution: powered by powermetrics --show-process-energy (Energy Impact). Attribution uses each app's share of the system energy score × measured Wh of the range — a weighted estimate, not metered accuracy; ranking and percentages are reliable. Measurement daemons and OS aggregate pseudo-tasks (powermetrics/ALL_TASKS/DEAD_TASKS) are excluded.
  • Hourly accrual with tiny footprint: buckets mirror the existing hour/day aggregation (168h / 365d retention) and persist to an append-only process_energy.jsonl (~0.7 KB/hour); the in-progress bucket survives restarts via flush-and-continue.

Update

v0.06 users: right-click ⚡ → "Check for Updates…" — in-app one-click upgrade.

Install

  1. Download PowerCumul-0.07.dmg · drag to Applications
  2. First launch: right-click app → Open → Open Anyway (once)

中文

新功能(相比 v0.06)

  • 耗电应用 TOP 列表:功率趋势图下方新增「耗电应用 TOP」区块——显示当前区间(24H/7D/30D)耗电前 5 的应用 + 「其他」长尾行,每行带占比条、百分比与归因 Wh,随图表区间切换即时重算。
  • 按进程能耗归因:数据来自 powermetrics --show-process-energy(Energy Impact)。归因方式为各应用能耗分占比 × 区间实测总 Wh——加权估算值而非电表精度,排名与百分比可靠。已排除测量进程与系统聚合伪任务(powermetrics/ALL_TASKS/DEAD_TASKS)。
  • 按小时累积、占用极小:桶结构与既有小时/天聚合一致(保留 168 小时 / 365 天),落盘为 append-only 的 process_energy.jsonl(约 0.7 KB/小时);进行中的桶经退出补写,重启自动续算。

升级

v0.06 用户:右键 ⚡ →「检查更新…」应用内一键升级。

安装

  1. 下载 PowerCumul-0.07.dmg · 拖入「应用程序」
  2. 首次打开:右键 App → 打开 → 仍要打开(仅一次)

PowerCumul 0.06

Choose a tag to compare

@github-actions github-actions released this 26 Aug 05:44

PowerCumul v0.06


English

What's New (since v0.05)

  • Net speed component: monitor upload/download rates right in the status bar (↑/↓), sampled via getifaddrs — zero processes, zero permissions; physical interfaces only (no VPN double-counting).
  • Composable status bar: replaced the 6 fixed modes with independent toggles — Power / cumulative Cost / cumulative Energy / Net speed. Check any combination; none checked = icon only. Existing preferences migrate automatically.
  • Energy now shows cumulative kWh, consistent with cumulative cost.

Update

v0.05 users: right-click ⚡ → "Check for Updates…" — in-app one-click upgrade.

Install

  1. Download PowerCumul-0.06.dmg · drag to Applications
  2. First launch: right-click app → Open → Open Anyway (once)

中文

新功能(相比 v0.05)

  • 网速组件:状态栏直接看上传/下载速率(↑/↓),getifaddrs 零进程零权限采样,只统计物理网口(VPN 不双计)。
  • 状态栏组件化:6 种固定模式改为独立勾选——功率 / 累计费用 / 累计电量 / 网速任意组合,全不勾即仅图标。旧偏好自动迁移。
  • 电量改为累计 kWh,与累计费用语义一致。

升级

v0.05 用户:右键 ⚡ →「检查更新…」应用内一键升级。

安装

  1. 下载 PowerCumul-0.06.dmg · 拖入「应用程序」
  2. 首次打开:右键 App → 打开 → 仍要打开(仅一次)

PowerCumul 0.05

Choose a tag to compare

@github-actions github-actions released this 25 Aug 03:58

PowerCumul v0.05


English

What's New (since v0.04)

  • In-app auto-update: right-click ⚡ → "Check for Updates…" now pulls the latest GitHub Release, downloads, installs in place, and relaunches — no browser, no manual download. Includes a rate-limit-free fallback channel (API → releases/latest redirect).
  • First release with the self-updater: update from v0.04 by right-clicking → Check for Updates, or download below.

Install

  1. Download PowerCumul-0.05.dmg · drag to Applications
  2. First launch: right-click app → Open → Open Anyway (once)

中文

新功能(相比 v0.04)

  • 应用内自动更新:右键 ⚡ →「检查更新…」直接拉取 GitHub 最新 Release、下载、原地换装并重启——无需浏览器、无需手动下载。含不限流回退通道(API 失败自动走 releases/latest 重定向)。
  • 首个自带更新器的版本:v0.04 用户右键「检查更新」即可升级,或直接下载。

安装

  1. 下载 PowerCumul-0.05.dmg · 拖入「应用程序」
  2. 首次打开:右键 App → 打开 → 仍要打开(仅一次)

PowerCumul 0.04

Choose a tag to compare

@github-actions github-actions released this 25 Aug 01:46

PowerCumul v0.04


English

Critical Fix

  • Fixed a CPU spin bug in v0.03: an unconsumed stderr readability handler busy-looped at ~98% CPU once powermetrics wrote anything to stderr. stderr is now redirected to /dev/null. Measured: 98.3% → 0.0% CPU.

If v0.03 made your Mac run hot / showed abnormally high power readings, this was why — please update.

Install

  1. Download PowerCumul-0.04.dmg
  2. Drag PowerCumul to Applications (replace old version)
  3. First launch: right-click app → Open → Open Anyway (once)

中文

严重修复

  • 修复 v0.03 空转 bug:stderr 的 readabilityHandler 未消费数据导致 busy-loop,powermetrics 一旦写 stderr 就烧满一个核(~98% CPU)。现改为 stderr 接 /dev/null。实测 98.3% → 0.0%。

如果 v0.03 让你机器发热/功率读数异常偏高,就是这个原因——请升级。

安装

  1. 下载 PowerCumul-0.04.dmg
  2. 拖入「应用程序」替换旧版本
  3. 首次打开:右键 App → 打开 → 仍要打开(仅一次)

PowerCumul 0.03

Choose a tag to compare

@github-actions github-actions released this 20 Aug 13:27

PowerCumul v0.03


English

What's New (since v0.02)

  • Continuous streaming sampling: powermetrics now runs as a long-lived process, parsing every sample block — 100% time coverage, zero extrapolation error. The old approach (spawn every 5s, measure 1s, extrapolate) is gone, along with its ~17k process spawns/day overhead.
  • DRAM counted: idle power no longer drops to 0 — DRAM draw is added to the Combined total.
  • Sleep gap fix: gaps over 90s (sleep/outage) are no longer charged at full power.
  • Throttled disk writes: state/raw files flush every 5s instead of per-sample.
  • Cost now cumulative: daily cost at idle is literally fractions of a cent (Mac mini idles at 2–6W), so the panel and status bar now show cumulative cost with 3 decimals — a number that actually moves.

Install

  1. Download PowerCumul-0.03.dmg
  2. Drag PowerCumul to Applications
  3. First launch: right-click app → Open → Open Anyway (once)
  4. Left-click ⚡ for panel, right-click ⚡ for settings

中文

新功能(相比 v0.02)

  • 连续流式采样:powermetrics 改为常驻进程逐块解析,100% 时间覆盖、零外推误差。旧方案(每 5s 启动一次、测 1 秒外推 5 秒)及其每天 1.7 万次进程创建开销一并移除。
  • 计入 DRAM:空闲时功率不再整段记 0,内存耗电补进总量。
  • 修复睡眠缺口:超过 90 秒的缺口(睡眠/中断)不再按满功率记账。
  • 落盘节流:状态与原始流每 5 秒写一次,不再逐样本写盘。
  • 费用改显示累计:Mac mini 空闲日电费只有几分钱(2 位小数恒为 0.00),面板与状态栏改为累计电费 + 3 位小数,数字真正看得见增长。

安装

  1. 下载 PowerCumul-0.03.dmg
  2. 拖 PowerCumul 到「应用程序」
  3. 首次打开:右键 App → 打开 → 仍要打开(仅一次)
  4. 左键 ⚡ 看面板,右键 ⚡ 调设置

PowerCumul 0.02

Choose a tag to compare

@github-actions github-actions released this 09 Aug 05:38

PowerCumul v0.02


English

What's New (since v0.01)

  • Settings → context menu: right-click the ⚡ icon for all settings (sample interval, currency, price, correction, status bar mode, language, alerts, launch-at-login, export). No more separate settings window.
  • Power & cost highlighted: real-time power and today's kWh now use accent color for stronger visual focus.
  • Default status bar mode: combo (power + cost).
  • Alert thresholds editable: set power threshold and daily budget via right-click menu.
  • 7D/30D chart fix: daily buckets now render correctly (were near-zero due to a divide error).
  • Price/budget input dialogs: unified number-input prompt.
  • Check for Updates: right-click → opens GitHub Releases in browser.
  • Icon brighter: larger bolt on a bright blue gradient.

Install

  1. Download PowerCumul-0.02.dmg
  2. Drag PowerCumul to Applications
  3. First launch: right-click app → Open → Open Anyway (once)
  4. Left-click ⚡ for panel, right-click ⚡ for settings

中文

新功能(相比 v0.01)

  • 设置改为右键菜单:右键 ⚡ 图标即可调出全部设置(采样间隔、货币、电价、校正系数、状态栏模式、语言、告警、开机自启、导出),不再用独立设置窗口。
  • 功率与费用突出显示:实时功率和今日 kWh 改用强调色,视觉重心更明确。
  • 状态栏默认组合模式:同时显示功率 + 费用。
  • 告警阈值可编辑:右键菜单设置功率阈值 / 日预算。
  • 修复 7D/30D 图表:天桶数据之前因除法错误近乎为 0,现已正常显示。
  • 电价/预算统一输入弹窗。
  • 检查更新:右键菜单 → 浏览器打开 Releases 页。
  • 图标更亮:明亮蓝色背景 + 放大闪电。

安装

  1. 下载 PowerCumul-0.02.dmg
  2. 拖 PowerCumul 到「应用程序」
  3. 首次打开:右键 App → 打开 → 仍要打开(仅一次)
  4. 左键 ⚡ 看面板,右键 ⚡ 调设置