'Capture heap snapshot (Chrome dev tools) while running Protractor tests

I want to create an automated Protractor test that creates a heap snapshot after opening the application in Chrome and after performing a series of actions via protractor. Then to upload in Chrome dev tools in the memory tab both snapshots and compare them. The problem is that the application classes are not available in the snapshot, only test related information. Is there a way to do this while running Protractor tests? The snapshot libraries I've tried are heapdump, v8-profiler-next and several others but with the same result.

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source