PySyft
PySyft copied to clipboard
Add PyInstrument Profiling
Description
The PR aims to add pyinstrument profiling support to in-memory workers. The profiling functionality can be useful for
- [x] In-memory worker - uvicorn
- [x] In- memory worker - without uvicorn
This can be triggered as simply by enabling a flag in orchestra profile=True
For K8s tracing, we could do once OTel PR is merged.
Affected Dependencies
List any dependencies that are required for this change.
How has this been tested?
Add an example notebook for the same
Checklist
- [ ] I have followed the Contribution Guidelines and Code of Conduct
- [ ] I have commented my code following the OpenMined Styleguide
- [ ] I have labeled this PR with the relevant Type labels
- [ ] My changes are covered by tests