Attempting to track memory leak on a project with 10,000 lines of app code, 60,000 lines total code with libraries. Using Chrome Dev Tools and even Visual Studio profilers is good, but still not quite enough. What I would like to do is track the memory profiling from inside the app,
It could be automatic or it could require adding calls like:
function MyController($scope, ngProfiler){
ngProfiler.register("MyControllerID");
$scope.$on('$destruct', function () {
ngProfiler.deregister("MyControllerID");
});
}
And something like:
$interval(function (ngProfiler) {
ngProfiler.dump();
}, 5000);
Does anyone know anything that exists like this? dump() would print out a list of active objects, perhaps a list of scopes, watches and listeners by name & function.