PresentMon Improvements: Memory Leak Fixes, ETW Monitoring & Build Setup#560
Merged
markgalvan-intel merged 5 commits intoGameTechDev:mainfrom Jan 6, 2026
Merged
PresentMon Improvements: Memory Leak Fixes, ETW Monitoring & Build Setup#560markgalvan-intel merged 5 commits intoGameTechDev:mainfrom
markgalvan-intel merged 5 commits intoGameTechDev:mainfrom
Conversation
Contributor
DevTechProfile
commented
Dec 31, 2025
- 7666068 - project setup, can be build
- Updated .gitignore (can be ignored)
- Modified ConsoleApplication.sln for build configuration
- e4dd0f5 - increased sessionProps.MaximumBuffers
- Increased ETW session buffer capacity in PresentMonTraceSession.cpp (please check)
- 1e913d6 - fix memory leaks, nodes in HwQueueContext
- Fixed memory leak in GPU trace handling
- Added cleanup for HwQueueContext nodes in GpuTrace.cpp
- f4cd91f - ETW status monitoring (would be very nice to add this)
- Added ETW session status monitoring functionality
- New status tracking in PresentMonTraceSession.cpp/.hpp
- CSV output support for ETW statistics
- Command line and main thread integration
- 8e303cc - fixed memory leak PCLStatsShutdown event (critical part!)
- Fixed critical memory leak in PC Latency tracking (--track_pc_latency)
- Added PCL data cleanup on process termination
- Added periodic pruning of stale PCL timing data in CompletePresent
- Prevents unbounded growth of mPclTimingDataByPclFrameId and mLatestPingTimestampByProcessId
markgalvan-intel
approved these changes
Jan 6, 2026
Collaborator
markgalvan-intel
left a comment
There was a problem hiding this comment.
Looks good. Thanks for the contribution. It is greatly appreciated!
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.