Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use script_id in IHeapLocation to get js url ? #118

Closed
shimingw opened this issue May 17, 2024 · 2 comments
Closed

How can I use script_id in IHeapLocation to get js url ? #118

shimingw opened this issue May 17, 2024 · 2 comments

Comments

@shimingw
Copy link

shimingw commented May 17, 2024

Is there any way I can get the js url of the specified node?

@JacksonGL
Copy link
Member

JacksonGL commented May 17, 2024

I am not aware of a way to do this, unfortunately Chrome does not seem to expose such an API to query this information.

script_id is extracted from Chrome JS heap snapshot, it is just an index referring to a data structure in Chrome's memory when the heap snapshot was taken, but Chrome does not seem to encode and serialize the index-to-URL mapping in JS heap snapshot.

@shimingw
Copy link
Author

Thank you for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants