From 4cc03ef4b294e6da9e7c845e0f90541ed87c87bf Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Mon, 21 Aug 2023 05:48:23 -0700 Subject: [PATCH] Add litho framework events Summary: Leverages the new connection listener inside the ui debugger to send framework events out of the Litho debug api and to the UIDebugger Reviewed By: adityasharat Differential Revision: D48350647 fbshipit-source-id: 2af48578b70bc50da43712f244f2bd208ad40988 --- .../flipper/plugins/uidebugger/model/FrameworkEvents.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/facebook/flipper/plugins/uidebugger/model/FrameworkEvents.kt b/android/src/main/java/com/facebook/flipper/plugins/uidebugger/model/FrameworkEvents.kt index c23bd0782..647411c87 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/uidebugger/model/FrameworkEvents.kt +++ b/android/src/main/java/com/facebook/flipper/plugins/uidebugger/model/FrameworkEvents.kt @@ -17,8 +17,11 @@ data class FrameworkEventMetadata( @kotlinx.serialization.Serializable data class FrameworkEvent( + val treeId: Id, val nodeId: Id, val type: String, - val timestamp: Long, - val thread: String + val timestamp: Long, //millis since epoch + val duration: Long?, //in Nanoseconds + val thread: String, + val payload: Map //can be json )