Getting instrumentation for Services (Service, provider, factory etc) is straight forward and easy as they are singleton in nature. You can use this library if you are looking for readymade solution: https://github.com/mgechev/angular-aop
Getting these number for Controller is little tricky as when do you stop the timer to get the timing if there are multiple async calls? This can happen in services too. But controllers are not in singleton in nature. You can use $q.all() in this case but given a chance i do not want to add anything to production code to get these numbers. We spent lot of time in our current project and may be i can release this code on github. Good luck this (performance \ instrumentation) is something everyone should be concerned i guess. On Monday, November 3, 2014 10:23:56 PM UTC+5:30, asicfr asicfr wrote: > > > Hi everybody. > Is there any way to plug a tracker in an Angularjs 1.3 app to > list the timestamp of each ctrl and services function invocation ? > Thx > -- 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.
