ember-best-practices / ember-perf-timeline

Add performance information to Chrome's Timeline for Ember applications
MIT License
98 stars 12 forks source link

Improve measure performance and measure `trigger` as well #16

Closed runspired closed 7 years ago

runspired commented 7 years ago

This moves us to using performance.mark and performance.measure instead of console.time and console.timeEnd which reduces the overhead of instrumentation. Further: it instruments Evented's trigger method in a way that catches

It avoids looking up and reopening DS.Model if ember-data is not present.

We may want to add it to Route as well, but I was unsure if Route implemented Evented by default and didn't want to introduce it if not.

runspired commented 7 years ago

cc @stefanpenner I updated this.

stefanpenner commented 7 years ago

released as v1.2.0 🎉