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

✨ view tree logging feature #2

Merged
merged 11 commits into from
Sep 13, 2024
Merged

✨ view tree logging feature #2

merged 11 commits into from
Sep 13, 2024

Conversation

Zeta611
Copy link
Contributor

@Zeta611 Zeta611 commented Sep 12, 2024

  • Basic view tree visualization
  • Decision, state (queue), effect (queue) visualization
  • Retry/re-render visualization

@Zeta611 Zeta611 self-assigned this Sep 12, 2024
@Zeta611 Zeta611 marked this pull request as draft September 12, 2024 07:53
@Zeta611
Copy link
Contributor Author

Zeta611 commented Sep 12, 2024

Current status:

┌────────┐
│   •    │
├──────┬─┤
│┌────┐│0│
││ D  ││ │
│├────┤│ │
││┌──┐││ │
│││C │││ │
││├──┤││ │
│││()│││ │
││└──┘││ │
│└────┘│ │
└──────┴─┘

@Zeta611
Copy link
Contributor Author

Zeta611 commented Sep 12, 2024

Current status:

react_trace: [INFO] Step path 2
┌──────────────────────────┐
│            •             │
├───────────────────────┬──┤
│ ┌────────────────────┐│  │
│ │         D          ││  │
│ ├───┬────────────────┤│  │
│ │dec│Update          ││  │
│ ├───┼────────────────┤│  │
│ │stt│0 ↦ (Bool false)││  │
│ │   │└─λ_.<body>     ││  │
│ ├───┼────────────────┤│  │
│ │eff│                ││  │
│ ├───┴────────────────┤│  │
│ │ ┌────────────────┐ ││0 │
│ │ │       C        │ ││  │
│ │ ├───┬────────────┤ ││  │
│ │ │dec│Idle        │ ││  │
│ │ ├───┼────────────┤ ││  │
│ │ │stt│0 ↦ (Int 43)│ ││  │
│ │ ├───┼────────────┤ ││  │
│ │ │eff│            │ ││  │
│ │ ├───┴────────────┤ ││  │
│ │ │       ()       │ ││  │
│ │ └────────────────┘ ││  │
│ └────────────────────┘│  │
└───────────────────────┴──┘

@Zeta611 Zeta611 marked this pull request as ready for review September 12, 2024 12:55
@Zeta611 Zeta611 added the enhancement New feature or request label Sep 12, 2024
@Zeta611 Zeta611 requested a review from joongwon September 12, 2024 12:57
lib/interp.ml Outdated Show resolved Hide resolved
Copy link
Collaborator

@joongwon joongwon left a comment

Choose a reason for hiding this comment

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

👍

@Zeta611 Zeta611 merged commit ffb6300 into main Sep 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants