Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to measure performance of angular app?

I am working on big application built using angular. I have read a lot articles how to improve performance. I have implemented below mentioned things -

  • Avoid Watchers
  • ng-repeat with track by
  • single binding
  • Used ng-if instead of ng-show
  • used $compileProvider.debugInfoEnabled(false) to remove ng-binding and ng-scope classes in production.

But I have tried a lot plugin but not able to get satisfactory result.

Could anybody tell me how to measure performance of angular app ??

like image 496
Pankaj Ladhar Avatar asked Nov 09 '22 19:11

Pankaj Ladhar


1 Answers

I haven't tried it yet, but it looks promising: https://opbeat.com/angularjs

Other ideas:

  1. Check how many watchers do you have: https://github.com/bahmutov/code-snippets/blob/master/ng-count-watchers.js

  2. Check for memory leaks: http://www.dwmkerr.com/fixing-memory-leaks-in-angularjs-applications

like image 122
wawka Avatar answered Nov 15 '22 05:11

wawka