Skip to content

Commit dd8772d

Browse files
committed
Update opt-trace-format.md
1 parent 2e3fb75 commit dd8772d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎v3/docs/opt-trace-format.md‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,10 @@ The `event` field can either be:
753753

754754
## Closures and Zombie Frames (advanced)
755755

756-
(TODO: WRITE ME!)
756+
As soon as a funcition becomes a parent of another function (i.e., a nested function is defined inside of it), then set the `is_parent` field of its stack entry to `true`. Also change its `unique_hash` by appending `_p` to the end of it. The reason why we want to change the unique hash is that we want the frontend to *refresh* its display, and d3 might not refresh if it sees that the hash is identical to the prior frame. Conceptually, we want `unique_hash` to be different for a function before and after it turns into the parent of another function since we want to display it differently.
757757

758-
(TODO: talk about needing to append `_p` and `_z` onto `unique_hash` when a frame becomes a parent or zombie,
759-
respectively, since the frontend needs to know when to refresh the display.)
758+
[TODO: talk about `parent_frame_id_list`]
759+
760+
[TODO: talk about appending `_z` onto `unique_hash` when the frame becomes a zombie.]
761+
762+
[TODO: IMPROVE ME!]

0 commit comments

Comments
 (0)