Tip: `queryObjects(Constructor)` in @ChromeDevTools console gets all objects of a given constructor or class
pic.twitter.com/4ovT5fqiOc
-
queryObjects() is a DevTools Console API for querying heap objectsCall queryObjects(Constructor) from the Console to return an array of objects that were created with the specified constructor. Examples: queryObjects(Object) queryObjects(Promise)
-
Replying to @addyosmani @ChromeDevTools
Does it only include values that still have references, or anything that hasn’t been picked up by GC?
1 reply 0 retweets 1 like
Replying to @buildsghost @addyosmani
Live objects only. We perform a GC implicitly upfront.
2:29 AM - 15 Apr 2020
0 replies
0 retweets
14 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.