PresentMon Improvements: Memory Leak Fixes, ETW Monitoring & Build Setup by DevTechProfile · Pull Request #560 · GameTechDev/PresentMon

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@DevTechProfile

Copy link

Contributor

  1. 7666068 - project setup, can be build
  • Updated .gitignore (can be ignored)
  • Modified ConsoleApplication.sln for build configuration
  1. e4dd0f5 - increased sessionProps.MaximumBuffers
  • Increased ETW session buffer capacity in PresentMonTraceSession.cpp (please check)
  1. 1e913d6 - fix memory leaks, nodes in HwQueueContext
  • Fixed memory leak in GPU trace handling
  • Added cleanup for HwQueueContext nodes in GpuTrace.cpp
  1. 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
  1. 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
RodroG-85 reacted with heart emoji
Copy link

Collaborator

@markgalvan-intel markgalvan-intel left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for the contribution. It is greatly appreciated!

@markgalvan-intel markgalvan-intel merged commit 6e30d52 into GameTechDev:main

Jan 6, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@markgalvan-intel markgalvan-intel markgalvan-intel approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@DevTechProfile @markgalvan-intel