Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Fix duplicate edges issue in Prepack heap visualization #1308

Closed
wants to merge 2 commits into from

Conversation

jeffreytan81
Copy link
Contributor

@jeffreytan81 jeffreytan81 commented Jan 2, 2018

Release Note: Fix duplicate edges issue in Prepack heap visualization.

This PR did two things:

  1. Fix duplicate edges issue in Prepack heap visualization by using unique identifier for edge id field.(heap visualizer runs into trouble #1300)
  2. Prepack heap visualization supports two formats: 1. Dot language formatted used by CLI. 2. JSON format used by Vis.js library to visualize in website REPL. This PR allows both.

@jeffreytan81 jeffreytan81 force-pushed the ImprovePrepackGraphVisualization branch from 51b9447 to cbca87f Compare January 2, 2018 23:10
Copy link
Contributor

@NTillmann NTillmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

It seems that a crash in the heap graph visualization effectively broke the entire website, i.e. suppressed the code output? Would be nice if that wasn't the case.

@jeffreytan81 jeffreytan81 force-pushed the ImprovePrepackGraphVisualization branch from d22d49f to 22d930a Compare January 3, 2018 17:31
@jeffreytan81
Copy link
Contributor Author

No, currently, if there is a bug in the visualization(Vis.js bug or graph data format not valid), it won't break down the whole website. It's just the "Show Heap" button shows no content(not sure if this can be improved with some error message). The serialized code will still show.(At least this is true for this bug).

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yinghuitan is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@hermanventer hermanventer deleted the ImprovePrepackGraphVisualization branch January 4, 2018 01:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants