by sbr464 · 6y ago · 0 comments
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.
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=107093...