Repository navigation
Conversation
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.
开机守护改为每 60 秒采样。提交量相对上一次写出的值,绝对变化超过 256 MiB 时提前记一行;稳定时每 10 分钟保底。读取失败后按分钟重试,恢复时补一行。采样独立于客体重启调优,整机计数仍只在写日志时读取。
退出汇总分别写出最后成功样本的时间和计数、采样最大提交量与工作集、成功次数与进程读取失败次数。OS 提交峰值来自最后一次成功读取的
PeakPagefileUsage,明确标注“精确退出峰值未知”。Windows 可能对仍被句柄保留的已退出进程返回成功及缩水后的计数,因此内存读取增加退出检查,继续保留 PID 与创建时间核对。问题包中的日志提示同步新频率,原有日志收集和轮转沿用。验证通过:
go test ./...,最终调整后重跑go test ./internal/emu ./internal/report ./internal/win -count=1;Windows、darwin/arm64、linux/amd64 的go vet ./...。graceful、synced=true,测试进程和端口已清理。首次硬件渲染初始化时模拟器退出,日志末尾有 OpenGL 错误,所以实机验收使用软件渲染。未验证游戏、图形界面、整夜运行或真实十分钟等待;十分钟时序由确定性测试覆盖。没有编译模拟器,也不涉及 #156 的泄漏根因。
Refs ModAVD/ModAVD#159