rollbar.js icon indicating copy to clipboard operation
rollbar.js copied to clipboard

Report metrics from windows.performance

Open jessewgibbs opened this issue 7 years ago • 2 comments

Originally suggested in https://app.intercom.io/a/apps/rlisg82q/inbox/inbox/487663/conversations/10894526158.

It would be great to get a rollbar automatically if [window.performance.memory] goes over a certain amount.

jessewgibbs avatar Aug 24 '18 23:08 jessewgibbs

window.performance.memory is Chrome only, and the standardized window.performance data doesn't include a memory measurement. (Chrome could reasonably remove this feature at any time.) Do we want to proceed anyway?

waltjones avatar Mar 11 '19 21:03 waltjones

@waltjones I'd say yes. In general, I think we can have features that work in only the environments where the data is available - applying that here, this kind of message would of course only be able to fire in browsers that provide the data.

brianr avatar Mar 11 '19 22:03 brianr