ng-stats demo

Repo on GitHub
This is a demo for a little utility to show stats about your page's angular digest/watches. This library currently has a simple script to produce a chart. It also creates a module called `angularStats` which has a directive called `angular-stats` which can be used to put angular stats on a specific place on the page that you specify.

Chart

Directive

Watch Count:
Digest Cycle Length:

Watcher & Digest Simulation

Control Watch Count and Digest Length


Force Digests

You can force digests by mousing over the items below. Notice that the filter wait impacts performance more quickly than the watch count... In fact, see the huge difference between 0 and 1 milliseconds on the filter wait. This scenario is most likely to be the case in most apps, however, this demo illustrates the importance of keeping your watcher expressions lightweight.

{{item | longFilter}}