Skip to content

fix: only keep unique frames in FrameCoverage object#10

Merged
EYH0602 merged 3 commits intomainfrom
fix-framecov-oom
Aug 2, 2025
Merged

fix: only keep unique frames in FrameCoverage object#10
EYH0602 merged 3 commits intomainfrom
fix-framecov-oom

Conversation

@EYH0602
Copy link
Copy Markdown
Member

@EYH0602 EYH0602 commented Aug 2, 2025

This PR fixes #9 and thereby should fix https://github.com/SecurityLab-UCD/game-fuzz/issues/67.

@EYH0602 EYH0602 requested a review from Copilot August 2, 2025 00:11

This comment was marked as outdated.

@EYH0602 EYH0602 requested a review from Copilot August 2, 2025 00:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the FrameCoverage class to ensure only unique frames are stored, fixing issues #9 and #67. The changes optimize memory usage by deduplicating frames during initialization rather than on each access.

  • Moved get_frame_cov function from loader.py to frame_cov.py for better module organization
  • Modified FrameCoverage to accept a recording path instead of pre-loaded frames and deduplicate frames during initialization
  • Updated version number from 0.1.1 to 0.1.2

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

File Description
src/gamecov/loader.py Removed get_frame_cov function and unused imports
src/gamecov/frame_cov.py Refactored FrameCoverage constructor and moved get_frame_cov function here
src/gamecov/init.py Updated imports to reflect function relocation
pyproject.toml Bumped version number to 0.1.2

Comment thread src/gamecov/frame_cov.py
Comment thread src/gamecov/frame_cov.py
@EYH0602 EYH0602 merged commit 1420223 into main Aug 2, 2025
4 checks passed
@EYH0602 EYH0602 deleted the fix-framecov-oom branch August 2, 2025 00:16
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.

FrameCoverage consumes too much memory

2 participants