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.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.