Skip to content

feat: 观察程序各次运行的私有内存变化 - #82

Merged
Ray-lea merged 14 commits into
Ray-lea:mainfrom
hayxe1:feat/program-memory-observation
Nov 17, 2026
Merged

Ray-lea merged 14 commits into
Ray-lea:mainfrom
hayxe1:feat/program-memory-observation

Conversation

@hayxe1

@hayxe1 hayxe1 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

改动内容 / Changes

在单个进程的详情中选择“仅此运行实例”或“后续运行”,记录 private working set 与 private commit,覆盖未进入历史排行榜的程序。后续运行通过已验证创建时间的进程句柄读取映像路径;不同 PID/创建时间分别保留曲线,同名但不同路径的程序不会合并。

Adds opt-in memory observation for one process instance or future launches of the selected program, independently of historical top lists. Program identity comes from the validated process handle. Each launch retains its own PID/creation-time curve; inaccessible or missing samples remain gaps.

  • 单实例最多 1 小时、720 点、1 MiB;程序观察使用独立的 9 MiB ring,最多保留 7 天及 131072 个记录点,附带完整性校验、过期清理和分页。
  • Stop retains recorded data; Delete removes it. Clear History also stops and removes observations. Restarting Argus marks unfinished observations interrupted and never resumes them implicitly.
  • 映像路径保存在本地观察文件中。工作集上升仅表示观察到的变化,不作为内存泄漏结论。
  • Updated independently to upstream 62e962a3e36c54ebd7ca7770f4137feaf67015b2, retaining the first-sample schedule and current localization.

验证 / Validation

Checked merge commit f1df1e5d03d7e198ebaca2569cce76d4a8a4f0a3:

  • Core observation: 12 tests passed, including the explicitly run tests using 100 owned hidden helpers, a restart and same-name copies in different directories.
  • Real sampler integration passed Start/Stop/Delete and Clear History for instance and program observation. Eight sampler scheduling tests passed, including the first-snapshot cases.
  • Development build, native Clippy, Rust formatting, eight-locale catalog, resource formatting and generated dispatch checks passed.
  • Isolated, non-activating native-window scenarios passed for instance/program controls, run selection, pagination, stale replies and 150% scale. Screenshots were visually inspected. UI commands use mocked data; actual collection was checked separately.
  • Comparable release CPU/GPU/memory/frame-rate A/B measurements remain outstanding. Physical hardware, installed-service upgrades and VM recovery are outside this feature's validation.

检查清单 / Checklist

  • Title and commit messages follow Conventional Commits.
  • Behavior documented in docs/guide/README.md; UI text supplied in all eight locales.
  • Full start.bat check on the updated merge (targeted checks above; the earlier full check predates it).
  • Public screenshot attachments and comparable release performance baseline.

BREAKING CHANGE: New daily history files use version 3 to retain process creation times. Version 2 files remain readable and continue in their original format for the current day. Older builds cannot read version 3 recordings. Back up history before downgrading.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-12T19:47:30.386518Z
We couldn’t complete this review. Comment @codex review to try again.
5e13833 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@Ray-lea
Ray-lea merged commit aca6b6b into Ray-lea:main Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants