-
Notifications
You must be signed in to change notification settings - Fork 120
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
instruments/trace_cmd: Add tracing mode support to TraceCmdInstrument() #1276
Conversation
LGTM however it needs to wait until this devlib PR is merged: EDIT: strikethrough |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also looks good to me.
And thanks @douglas-raillard-arm for the poke on the corresponding devlib PR. I think we can avoid having to wait for a PyPi release but you're correct we'll need at least a dev bump to align these PR's when merging.
Just came back to remove that part from my comment. As long as WA's PyPI release is not pushed before devlib's one it's probably ok to only support devlib's master in WA's master branch |
@@ -162,6 +162,12 @@ class TraceCmdInstrument(Instrument): | |||
installed on the host (the one in your | |||
distribution's repos may be too old). | |||
"""), | |||
Parameter('mode', kind=str, default='write-to-memory', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should specify allowed_values=['write-to-disk', 'write-to-memory']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks.
This PR supersedes #1232 |
Added the branch to our vendored version for dogfooding |
7952451
to
86aabab
Compare
Implement tracing mode support (mainly for write-to-disk mode) in TraceCmdInstrument, enabling efficient collection of large trace datasets without encountering memory limitations. This feature is particularly useful for scenarios requiring extensive trace data. Additional changes: - Replace hardcoded strings with corresponding string literals for improved maintainability. Signed-off-by: Metin Kaya <[email protected]>
86aabab
to
cdf5576
Compare
Implement tracing mode support (mainly for write-to-disk mode) in TraceCmdInstrument, enabling efficient collection of large trace datasets without encountering memory limitations.
This feature is particularly useful for scenarios requiring extensive trace data.
Additional changes: