-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from ARM-software/protobufs
Refactor workload tracking and message generation
- Loading branch information
Showing
27 changed files
with
2,089 additions
and
591 deletions.
There are no files selected for viewing
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
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
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 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 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,19 @@ | ||
# 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 | ||
|
||
- - - | ||
|
||
_Copyright © 2025, Arm Limited and contributors._ |
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
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
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
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
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
Oops, something went wrong.