Angular Profiling Module

38 views
Skip to first unread message

Jonathan Matthew Beck

unread,
Aug 25, 2014, 10:49:30 AM8/25/14
to ang...@googlegroups.com
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.

Sander Elias

unread,
Aug 25, 2014, 11:09:19 AM8/25/14
to ang...@googlegroups.com
Hi Jonathan,

you can use console.timeLine('timeLineId') and console.timeLineEnd('tmeLineId')

also profile(id) profileEnd(id) do work in chrome.


Or am I mistaken and are you looking for something else?

Regards
Sander

Jonathan Matthew Beck

unread,
Aug 25, 2014, 2:29:57 PM8/25/14
to ang...@googlegroups.com
Looking for something deeper than that.  Something to profile from inside the code, like this: https://github.com/kentcdodds/ng-stats

But with more information being dumped.


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/O9EMhE-434o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages