-
-
Notifications
You must be signed in to change notification settings - Fork 429
Enable output to both JSON and CLI #931
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Garett Brown <[email protected]>
|
Please address the CI issues above, thanks! |
|
I addressed the CI issues by trying to keep the behaviour as similar to the original as possible. The only difference should be with |
Co-authored-by: Emery Berger <[email protected]>
* Bumped version. * Fix for pickling support (multiprocessing issue on Windows) (plasma-umass#954) * Pickling support for multiprocessing, fixes 914. * Modified MWE from 914 to properly freeze state, per documentation. * Format code with black * Bumped CI to 3.14. (plasma-umass#955) * Document support for 3.14. * Force NumPy version 2 for Python 3.14. --------- Co-authored-by: Emery Berger <[email protected]> Co-authored-by: emeryberger <[email protected]>
* Bumped version. * Fix for pickling support (multiprocessing issue on Windows) (plasma-umass#954) * Pickling support for multiprocessing, fixes 914. * Modified MWE from 914 to properly freeze state, per documentation. * Format code with black * Bumped CI to 3.14. (plasma-umass#955) * Document support for 3.14. * Force NumPy version 2 for Python 3.14. * Move to macos-latest (per https://github.blog/changelog/2025-09-19-github-actions-macos-13-runner-image-is-closing-down/). * Updated dep for Python>=3.9 * Restore 3.8 support (plasma-umass#958) * Updated to see if 3.8 can still be supported. * One more update. * Format code with black --------- Co-authored-by: Emery Berger <[email protected]> Co-authored-by: emeryberger <[email protected]>
|
I'm open to discussion on the merit of these suggestions and their alignment with your vision of |
Context:
The CLI output, especially with the
--reduced-profileflag, provides concise, actionable, and human readable information for improving and optimizing code. Additionally, the JSON output provides verbose details, perfect to use for machine-automated interpretation and analysis of the results.Changes:
This PR enables the ability to save both the CLI output and the JSON output from the same profile when both the
--cliand--jsonflags are used in conjunction with--outfile.Drawbacks:
In order to prevent overwriting the JSON file, the plain text file is forced to have a
.txtsuffix. For consistency the HTML files are all forced to have a.htmlsuffix.Comments:
I understand that the default behaviour is to produce a JSON file and an HTML file for viewing in the browser. The change in this PR reflects the desire to provide the option of having the human readable profile as a text file, rather than only with a browser.