https://nightwatchjs.org/guide/running-tests/take-heap-snapshot.html
Take heap snapshot | Developer Guide | Nightwatch.js
Learn how to record heap snapshots right from your Nightwatch tests and use DevTools heap profiler to find memory leaks.
take heap snapshotdeveloper guidenightwatchjs