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

Misc: wire up and refactor trace logging #11919

Merged
merged 1 commit into from
Oct 20, 2024
Merged

Misc: wire up and refactor trace logging #11919

merged 1 commit into from
Oct 20, 2024

Conversation

F0bes
Copy link
Member

@F0bes F0bes commented Oct 15, 2024

Description of Changes

PCSX2 had a special trace logging system for intense debugging only useful for PCSX2 developers or homebrew developers on their 10th consecutive hour of debugging. It only outputs to the emulog and works on dev/debug builds.
This was available while we had the wxWidgets interface but it has never been brought to the Qt interface.

In addition to wiring it up to the Qt interface:

  • I've renamed the SysCon / SysTrace structures to ConsoleLogging and TraceLogging. SysCon is a device in the PS2. Having console logging named the same thing made it confusing.

  • I've ripped out the TraceLog filters (regs,disasm, etc). If you want register logging, enable those logs. If you want disasm logging, enable those logs too. Having an entire hierarchy made things more complex and probably slower (checking if the parent object is enabled, then that parents parent too, etc, etc)

Rationale behind Changes

It's helpful for PCSX2 and homebrew developers. You'd otherwise have to modify the source and manually add logging or force the trace on.

Suggested Testing Steps

Build a dev/debug build. Go to the advanced settings, enable some trace logs. Run a game / elf. Check your emulog to see if it's there.
An easy way to check is to enable the EE or IOP BIOS logging.

@F0bes
Copy link
Member Author

F0bes commented Oct 15, 2024

Sorry translators 😅

@chaoticgd
Copy link
Contributor

Ooh great! I was wondering where that menu had gotten to. Another friend for the GS dump tab.

@F0bes F0bes merged commit ab21d22 into master Oct 20, 2024
22 checks passed
@F0bes F0bes deleted the tracelogging branch October 20, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants