Skip to content

Commit

Permalink
Report attributes of TreeFuture events
Browse files Browse the repository at this point in the history
Summary: "wasInterrupted" of TreeFutureGet event is useful in confirming where a task is truly interrupted or not.

Reviewed By: charles011

Differential Revision: D55808152

fbshipit-source-id: 5515644b8cf88869b8fb854ec6ed18071be7eac4
  • Loading branch information
Wenyuan Chi authored and facebook-github-bot committed Apr 5, 2024
1 parent 124fc94 commit 62ee80a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ object LithoDebugEvents {
fun get(treeId: Int, name: String, wasInterrupted: Boolean) {
dispatch(type = LithoDebugEvent.TreeFutureGet, treeId = treeId) { attrs ->
attrs[DebugEventAttribute.Name] = name
attrs["wasInterrupted"] = wasInterrupted
attrs[DebugEventAttribute.WasInterrupted] = wasInterrupted
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ object DebugEventAttribute {
const val NumMountableOutputs = "numMountableOutputs"
const val NumItemsMounted = "numItemsMounted"
const val NumItemsUnmounted = "numItemsUnmounted"
const val WasInterrupted = "wasInterrupted"
}

/** Base class for marker events */
Expand Down

0 comments on commit 62ee80a

Please sign in to comment.