Skip to content

feat: migrate to zero-overhead ETW logging system#151

Merged
justnullname merged 1 commit intomainfrom
jules-2335369718023934675-5a47a4cd
Apr 19, 2026
Merged

feat: migrate to zero-overhead ETW logging system#151
justnullname merged 1 commit intomainfrom
jules-2335369718023934675-5a47a4cd

Conversation

@justnullname
Copy link
Copy Markdown
Owner

Implemented a high-performance, zero-overhead ETW logging solution using modern C++ for QuickView, integrating seamlessly with existing Debug metrics and completely replacing legacy OutputDebugStringW and swprintf_s log statements.

  • Defined macro QV_LOG utilizing C++ short-circuit evaluation bounded to AppConfig.EnableDebugFeatures and TraceLoggingProviderEnabled ensuring zero cost when debugging features are inactive.
  • Replaced straggling swprintf_s/OutputDebugStringW debugging constructs across the source files, particularly in the hot paths like HeavyLanePool.cpp, ImageEngine.cpp, CompositionEngine.cpp, and ImageLoader.cpp.
  • Integrated HUD diagnostic data (e.g., heavyCancellations, lastUploadChannel, and rawFrameUploadCount) from g_debugMetrics into targeted ETW traces for granular observability without locking mechanisms.
  • Established strict lifecycle controls using an EtwScope RAII wrapper invoked directly in wWinMain.

PR created automatically by Jules for task 2335369718023934675 started by @justnullname

Repository owner deleted a comment from google-labs-jules Bot Apr 17, 2026
@justnullname justnullname merged commit e24468f into main Apr 19, 2026
3 checks passed
@justnullname justnullname deleted the jules-2335369718023934675-5a47a4cd branch April 19, 2026 04:41
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.

1 participant