Skip to content

Can we get Snapshot with javascript file references #79

Closed

Description

@rupesh1306

Hi ,
Can we get snapshots with java script file references ?
Actually I am successfully able to execute the scenario but not able to get java script file reference in that as shown in the screen shot.
image

Activity

  1. JacksonGL commented on Jun 9, 2023

    @JacksonGL
    Member

    Chrome DevTools is able to provide the code link as it utilizes the scriptId number associated with each heap snapshot's closure instance. This scriptId serves as a reference for the JavaScript source code that is loaded into Chrome's memory, enabling DevTools to access and query the source code using this key. However, Chrome does not serialize the mapping information tied to the scriptId to disk. As a result, MemLab is unable to retrieve the mapping data related to scriptId for now.

    Maybe Chrome DevTools protocol can provide an interface for querying script based on scriptId.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions