Conversation
a9893d4 to
7e682e7
Compare
7e682e7 to
9690121
Compare
7f8acbf to
60f6e7b
Compare
Contributor
Author
|
Updated this re: a discussion on restructuring this to just be a simple feature of Changes in 60f6e7b:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces basic support for tracing as a feature of
iced_winit. For now, only Chrome traces are supported, but I have plans to add support for Tracy in the near future!Simply enable
iced/chrome-tracefeature to generate a trace file at the location of your current executable, e.g.:target/debug(or release)/traces/package_trace_timestamp.json.Any traces you include using the tracing crate will be included in addition to builtin things as frame time, application events, renderer draw calls for either wgpu or glow, etc.
E.g., in your application:
Chrome traces can be viewed at ui.perfetto.dev by opening the JSON file in the viewer.
Let me know what you think, thanks!