better.js
better.js copied to clipboard
objectmonitor.js
- you give it an object and it starts monitoring it
- you can display log in real time
- you can save them for later
- log =
- usage type (get/set/create/delete?)
- usage localisation
how to do it
- on initial object, monitor existing properties via getter/setter
- use harmony proxy to monitor property creation
- on new property, monitor them too
estimation
- at first sight, it seems possible
- it would be nice if it actually worked and was usable in practice