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

Add trace log level, traceCall decorator and use in webgl #4687

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Aug 18, 2023

  • New 'trace' log level in the API, you should expect very spammy logs when trace is on and filter them down. As opposed to 'debug' which should be more readable.
  • traceCall decorator logs the args and return value of the decorated method. Wecan use this on key functions in various parts of the code to assist debugging issues that are hard to reproduce such as webgl regression: may not render as typing #4665.
  • Decorated a few webgl render methods for webgl regression: may not render as typing #4665.
  • There's an early exit in traceCall when not on the trace log level so the runtime impact when not in trace is negligable.

Part of #4665


Example output:

image

@Tyriar Tyriar added this to the 5.3.0 milestone Aug 18, 2023
@Tyriar Tyriar self-assigned this Aug 18, 2023
@Tyriar Tyriar enabled auto-merge August 18, 2023 18:02
- New 'trace' log level in the API, you should expect very spammy logs when
  trace is on and filter them down. As opposed to 'debug' which should be more
  readable.
- traceCall decorator logs the args and return value of the decorated method.
  Wecan use this on key functions in various parts of the code to assist
  debugging issues that are hard to reproduce such as xtermjs#4665.
- Decorated a few webgl render methods for xtermjs#4665.
- There's an early exit in traceCall when not on the trace log level so the
  runtime impact when not in trace is negligable.

Part of xtermjs#4665
@Tyriar Tyriar changed the title Add trace log level, @traceCall decorator and use in webgl Add trace log level, traceCall decorator and use in webgl Aug 18, 2023
@Tyriar Tyriar merged commit a35fa61 into xtermjs:master Aug 18, 2023
8 checks passed
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.

None yet

1 participant