mdb_v8 icon indicating copy to clipboard operation
mdb_v8 copied to clipboard

want a way to find references that includes closures

Open davepacheco opened this issue 7 years ago • 2 comments

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.

davepacheco avatar Feb 09 '18 19:02 davepacheco

+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

yunong avatar Feb 09 '18 19:02 yunong

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.

misterdjules avatar Mar 01 '18 17:03 misterdjules