Getting Javascript memory profiling during test case

We inherited a fairly large Javascript application and test suite and recently started experiencing memory usage issues while testing.

While we are trying to fix the problems in our test suite, we would like to stop the flow of new leaks into the application. Are there any tools we can integrate with our CI build to get memory profiling? Even some basic memory allocation statistics will help us figure out if there is a set through memory.

We are running Jasmine with PhantomJS. The closest I could find is Chrome's window.performance.memory, but it is only available for all of Chrome and it seems like it can be quite changeable.

+3


source to share


1 answer


I am not aware of any automatic memory statistics of third party javascript applications that will run in CI. Take a look at google memory profiling page: https://developer.chrome.com/devtools/docs/javascript-memory-profiling



0


source







All Articles