5 ms·
This will be helpful. One issue I came across is that any loaded Chrome extensions get included in browser heap/memory snapshots and measurements. Your site ca
by sbr464 6y ago
This will be helpful.
One issue I came across is that any loaded Chrome extensions get included in browser heap/memory snapshots and measurements. Your site can appear to be more bloated that it actually is. Since Chrome user profiles came out, I created a blank user without extensions, similar to incognito, but without the history clearing effects. it would be nice to track memory/snapshots without needing to do that, to allow using other dev tool extensions etc.
As an example, If I open dev tools and check memory usage of Hacker News, it's 4Mb in my current Chrome user, but in a clean user with no extensions it's <1Mb.
- lstamour 6y agoSimilar to this, I’ve often wished for an onError that automatically excludes browser extensions somehow, to try and reduce the noise. There’s only so much I can control, and errors triggered by page extension code should somehow be reported back to the extension instead. If we had that, we wouldn’t need as much of this list of errors to ignore: https://github.com/tlk/window.onerror-ignore https://github.com/tlk/window.onerror-ignore
- deleted 6y ago[deleted]
- ComputerGuru 6y agoI must be missing something because I only see 37 lines and that’s a very short list. On an extremely small website’s checkout page alone we have seen ten times that.
- lstamour 6y agoGood point, I posted this from a phone, so I didn’t see how long the list was: I was speaking from my own experience of having to deal with more such errors.
- recursive 6y agoI regularly encounter scenarios where extensions break sites, or at least frustrate debugging efforts. I generally make sure all extensions are off prior to doing anything development-related.
- ulan 6y agoAuthor here. The new API excludes the objects allocated by extensions, so the results should be more stable and actionable compared to the existing tools. I filed a feature request for DevTools heap snapshot to do the same: https://bugs.chromium.org/p/chromium/issues/detail?id=1070930 https://bugs.chromium.org/p/chromium/issues/detail?id=107093...