mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 12:01:40 +08:00
In my conversations with JavaScript developers, they strongly prefer the option introduced in https://crrev.com/c/5215444 because it better matches JavaScript language semantics and shows fewer objects that are inscrutable engine internals. This change enables that option for all snapshots, unless the user has checked the box entitled "Expose internals (includes additional implementation-specific details)". This change also fixes a small bug uncovered by the Blink test case heap-snapshot-statistics.js: if a hidden node is owned directly by the root node (which never happens in real snapshots), we should not transfer the shallow size of that hidden node onto the root node. Bug: 41490040 Change-Id: Id105ced3355ac6c5c95f580bb18acec8186abf28 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5670631 Reviewed-by: Simon Zünd <szuend@chromium.org> Commit-Queue: Seth Brenith <seth.brenith@microsoft.com>