hedera-json-rpc-relay
hedera-json-rpc-relay copied to clipboard
Add memory profiling to CI.
Problem
As a relay operator I would like memory leaks to be caught early in the release process.
Solution
Add some kind of memory profiling coverage to the Relay's CI process.
Alternatives
When trying to use the clinic.js, heapprofile the following error was thrown:
/Users/user/projects/hedera-json-rpc-relay/node_modules/thread-stream/index.js:214
throw new Error('the worker has exited')
^
Here are some options to consider:
- https://github.com/paulirish/automated-chrome-profiling, Looks promising, but it's archived
- https://github.com/Dynatrace/github-actions-profiler
- https://github.com/cypress-io/cypress/issues/22053 Open issue, but cypress seems to have the same goal
- Possibly run the chrome profiler headless?