powertools-lambda-python
powertools-lambda-python copied to clipboard
Maintenance: Make a PoC with memray to profile the memory usage of our utilities
Why is this needed?
Memray is a memory profiler for Python. It can track memory allocations in Python code, in native extension modules, and in the Python interpreter itself. It can generate several different types of reports to help you analyze the captured memory usage data.
https://github.com/bloomberg/memray
Which area does this relate to?
Automation
Solution
Make a PoC with memray. Things to cover in this PoC:
- [ ] Analyze the minimum and maximum expected usage per utility.
- [ ] Test with different maximum memory configurations.
- [ ] Create a graph and upload it somewhere for public visibility (make sense?)
- [ ] Ideas?
Acknowledgment
- [X] This request meets Powertools for AWS Lambda (Python) Tenets
- [X] Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET