Repository navigation
Conversation
Store original frame fields and positions, then aggregate active memory by caller path with inclusive and self occupancy. Add shared queries plus text, JSON, and interactive HTML reports; rebuild old import caches. Fixes #206
Owner
Author
|
已基于最新 main 的 #230/#231 内容重整单库功能,提交新草稿 #232 供审查。旧分支直接合入会混用 standalone format3 和 native format2,且 native writer 不走 standalone frame 写入路径;新实现显式隔离 producer/version/cache/frame 能力,保留当前 dataset frameJson/coverage 读取,暂不扩展跨片树。 同时补强损坏/截断帧、非整数position及路径树守恒验证。新 PR 的完整测试和 CI 正在跑;真实 Chromium 交互因环境socket限制尚未验收,已有实际renderer JS的DOM交互证据,边界在 #232 明确说明。 |
Owner
Author
|
替代实现 #232 已合入 main,merge commit 为 单库有序帧、事件时刻路径树与 HTML 可达性验收已在 #232 完成,#206 按原定单库范围收尾。本 PR 的旧方案由 #232 取代,不再合并,现关闭;保留原正文和分支供追溯。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
原先只有整条调用栈文本和整栈归因,无法无损读取原始帧或逐层解释事件时刻的内存占用。本改动保存原始有序帧,并按分配调用路径提供存活内存树和交互式 HTML 火焰图。
frame/callstack_frame保存原始字段、位置和递归重复帧;栈身份使用有序结构化帧,保留旧展示文本。event_frames、active_memory_frame_tree_at_event与report memory-tree;CLI/API 共用查询语义,提供 inclusive/self 字节、块数、requested bytes 与整体占比,静态、预存和缺失栈分别展示。🔗 Related Issue
Fixes #206
Related: #62, #197, #198, #203. 本 PR 提供单库的有序帧与调用路径树;分片来源解析和 msinsight 互操作由对应 roadmap 任务继续推进。
🧪 Testing
git diff --check。audit_wheel.py内容审计、clean_wheel_agent_acceptance.py均通过。隔离检查固定当前运行时的PYTHONUSERBASE以复用预装依赖;wheel 本身在临时 venv 内安装并验证导入路径,不是全新依赖解析测试。✅ Checklist
Snapshot Runtime Provenance
Snapshot provenance decision: updated
snapshot/PROVENANCE.md追加本地结构化帧落盘的来源记录,既有记录及上游许可映射不变;base/head provenance guard 已验证。📋 Additional Notes
import_format_version从 2 升至 3,旧导入缓存会重建。已有文本查询继续兼容旧数据库;新增帧查询需要从原始 snapshot 重新导入,分析不会原地迁移或猜测原始帧。树使用事件之后的 active block 占用,pending-free 到 free_completed 才剔除,宽度不表示 CPU 时间或 reserved 内存。