Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profiler: Setup for usage on Windows #4260

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

Sonicadvance1
Copy link
Member

This will get gpuviz working under Wine.

@Sonicadvance1
Copy link
Member Author

Had to do some changes to this to get it fully working. Had to fix a issue in CRT/IO that files opened for writing should be shared with other writers, otherwise the trace file would get ENOENT.
Also had to fix the win32 performance query version of GetTime. We always want nanoseconds but Wine divides the result by 100. So we need to query the frequency and calculate the multiplier to get back to nanoseconds rather than ticks.

Also had to actually initialize the profiler interface.

This will get gpuviz working under Wine.
Fixes trace file opening since it needs to share with other users
opening the file for writing.
@lioncash lioncash merged commit 8e2b4a3 into FEX-Emu:main Jan 15, 2025
12 checks passed
@Sonicadvance1 Sonicadvance1 deleted the profile_win32 branch January 15, 2025 21:42
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.

3 participants