Should let us run memory usage tests that fail if memory usage exceeds a certain amount. Should also query the V8 API to get an actual heap snapshot to get V8's true memory usage as well as force GCs in V8 to attempt to reduce noise. Even with all the techniques expect memory usage #s to have some noise so will need to make sure the tests don't fail because of a little spike. Also expect standard behavior is memory usage will creep up slowly over time so should not panic as long as it is within X % of a baseline. Periodically we will need to update the baseline expected memory usage for the scenarios.
We need to be able to graph memory usage over time in some rudamentary way to be able to see the trend. Would suggest checking existing prior art. There are likely node libraries for this.
Should let us run memory usage tests that fail if memory usage exceeds a certain amount. Should also query the V8 API to get an actual heap snapshot to get V8's true memory usage as well as force GCs in V8 to attempt to reduce noise. Even with all the techniques expect memory usage #s to have some noise so will need to make sure the tests don't fail because of a little spike. Also expect standard behavior is memory usage will creep up slowly over time so should not panic as long as it is within X % of a baseline. Periodically we will need to update the baseline expected memory usage for the scenarios.
We need to be able to graph memory usage over time in some rudamentary way to be able to see the trend. Would suggest checking existing prior art. There are likely node libraries for this.