修复内存溢出风险:帧队列单生产者、串口无锁队列、Serilog 文件日志,并优化日志 UI 高频打印卡顿 - #55
Merged
Conversation
…oducer + lease); convert preview/match/OCR/screenshot/CLI consumers
…pt stop (Reset releases buttons + drops pending HID)
…d UI log ring (MaxLogLines=10000); CLI tee
…ure while loop is stuck in blocking Read
….Sinks.File (date+size rolling)
…, eliminating O(n²) scroll recalc on log bursts
…tch, skip ANSI parse for plain lines, cache line width, buffer Serilog
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.
背景:针对画面捕获、日志、多线程三处内存溢出与性能风险做审查后,分功能改造如下。
画面捕获:单生产者最新帧队列
串口:无锁发送队列
日志:Serilog 文件日志 + 有界 UI 环形缓冲
日志 UI 性能优化
健壮性
验证