From d3df6bc00e5b0fc6ed603880936cde749e7eb44a Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Mon, 6 Feb 2023 04:33:11 -0800 Subject: [PATCH] Attempt to render txid as date if possible Summary: We are using frame time on android so make sense to present it Reviewed By: lblasa Differential Revision: D42996555 fbshipit-source-id: 595a08571ccd82de0761cfeea8a204e576981ee0 --- .../plugins/public/ui-debugger/components/PerfStats.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop/plugins/public/ui-debugger/components/PerfStats.tsx b/desktop/plugins/public/ui-debugger/components/PerfStats.tsx index fbff575aa..ea3e1d657 100644 --- a/desktop/plugins/public/ui-debugger/components/PerfStats.tsx +++ b/desktop/plugins/public/ui-debugger/components/PerfStats.tsx @@ -26,6 +26,13 @@ const columns: DataTableColumn[] = [ { key: 'txId', title: 'TXID', + onRender: (row: PerfStatsEvent) => { + try { + return new Date(row.txId).toISOString(); + } catch { + return row.txId; + } + }, }, { key: 'observerType',