mdb_v8
mdb_v8 copied to clipboard
want a way to find references that includes closures
findjsobjects -r
is useful for finding which objects reference a particular object. However, it doesn't find references through closures. We should either extend it to include closure references or else add a separate dcmd for that.
+1000
On Fri, Feb 9, 2018 at 11:15 AM David Pacheco [email protected] wrote:
findjsobjects -r is useful for finding which objects reference a particular object. However, it doesn't find references through closures. We should either extend it to include closure references or else add a separate dcmd for that.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joyent/mdb_v8/issues/105, or mute the thread https://github.com/notifications/unsubscribe-auth/ABK2EAy_NF-8jpg4dWjEn8LONZf2C3jzks5tTJlqgaJpZM4SAZvV .
-- Via mobile
FWIW, a while ago I had quickly put together a change to help me do that while investigating a memory leak: https://github.com/misterdjules/mdb_v8/commit/79a93c474a3e7ba1d867ce03315be2a469a88d3a. It's not pretty and it's slow, but it definitely allowed me to root cause a problem I wouldn't have been able to root cause otherwise.