-
Notifications
You must be signed in to change notification settings - Fork 2
Refactor workload tracking and message generation #72
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e10063e
Refactor layer_command_stream, queue and command_buffer to remove dyn…
bengaineyarm 7a4e20b
Split LCSRenderPassContinuation from LCSRenderPass.
bengaineyarm 8bce9db
Move timeline layer driver payload creation and transmission into Wor…
bengaineyarm fc6335b
Remove getMetadata from layer_command_stream.
bengaineyarm dca1813
Fixup review comments
bengaineyarm e8d8445
Rework workload_metadata_builder to emit protobuf messages instead
bengaineyarm 05a3915
Rework service_gpu_timeline to process the raw protobuf frames
bengaineyarm bbc8ecb
Track GPU timeline PB submits per-device.
bengaineyarm c00e287
Fixed all pycodestyle and mypy warnings and errors
bengaineyarm 656ff4c
Added Header frame to protocol to identify version.
bengaineyarm 94efee1
Cleanup review feedback
bengaineyarm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
[mypy] | ||
exclude = lglpy/timeline/protos/.*\.py | ||
exclude = lglpy/timeline/protos/ | ||
ignore_missing_imports = True | ||
disable_error_code = annotation-unchecked | ||
|
||
[mypy-lglpy.timeline.data.raw_trace] | ||
disable_error_code = attr-defined | ||
|
||
[mypy-lglpy.comms.service_gpu_timeline] | ||
disable_error_code = attr-defined | ||
|
||
[mypy-google.*] | ||
ignore_missing_imports = True |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[pycodestyle] | ||
exclude = lglpy/timeline/protos | ||
ignore = E402,E126,E127 | ||
ignore = E402,E126,E127,W503 | ||
max-line-length = 80 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Updating the generated protobuf (de)serialization code | ||
|
||
This project uses protobufs for (de)serialization of certain data: | ||
|
||
* In the raw GPU timeline messages sent from `layer_gpu_timeline` to the host. | ||
* In the Perfetto data collected from the device. | ||
|
||
Python decoders for those protocols are pre-generated and stored in the sources | ||
under `lglpy/timeline/protos`. | ||
|
||
To regenerate or update the timeline protocol files use: | ||
|
||
protoc -I layer_gpu_timeline/ \ | ||
--python_out=lglpy/timeline/protos/layer_driver/ \ | ||
layer_gpu_timeline/timeline.proto |
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.