-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor workload tracking and message generation #72
Merged
Conversation
This file contains 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
solidpixel
requested changes
Jan 31, 2025
82aa973
to
8642ac8
Compare
…amic dispatch. Switch to a variant based instruction, rather than using dynamic dispatch + enum as this is more type safe. Remove the duplicated object in command_buffer.
No need to carry around the extra state uncessarily. This also makes clear from the type, rather than from the magic tagID value that the renderpass is a continuation. This makes refactoring to separate out the the workload as a data object from operations on that data safer since they will not need to propogate this magic knowledge forward.
…kloadMetadataEmitterVisitor. This centralizes the construction of metadata payloads into one place, decoupling the metadata format from the layer driver handler functions.
This is now moved into the centralized serializer for the layer driver in workload_metadata_builder and fully decouples the state tracker from the timeline layer's data serialization
of JSON. * Uses "protobuf" C++ header only library for encoding the messages as they are simple and we want to avoid a larger dependency on libprotobuf and the necessary build-time changes to build or require protoc for host and libprotobuf for target.
into JSON objects that the viewer expects
The protocol supports multiple devices, as does the API but historically we just assumed a single device. Modify the state tracking in service_gpu_timeline.py so that we collect frames and submits on a per-device basis.
8642ac8
to
6bb2a94
Compare
Renamed workload_metadata_builder to timeline_protobuf_encoder to better reflect what it does
6bb2a94
to
656ff4c
Compare
solidpixel
requested changes
Feb 7, 2025
solidpixel
approved these changes
Feb 7, 2025
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 reworks some of the state tracking, decoupling it from the timeline-layer specific data serialization.
This shouldn't change the serialized JSON data, but it is preparation work for moving to protobufs.