added metrics for snapshot

Reviewed By: lblasa

Differential Revision: D39886448

fbshipit-source-id: b229f6947d199026c6e4bdc89def6ac0a0fa9d0a
This commit is contained in:
Luke De Feo
2022-09-29 05:31:18 -07:00
committed by Facebook GitHub Bot
parent 4442c8599d
commit 78e84a0cc3
7 changed files with 25 additions and 3 deletions

View File

@@ -49,11 +49,18 @@ const columns: DataTableColumn<PerfStatsEvent>[] = [
return formatDiff(row.start, row.traversalComplete);
},
},
{
key: 'snapshotComplete',
title: 'Snapshot time (Main thread)',
onRender: (row: PerfStatsEvent) => {
return formatDiff(row.traversalComplete, row.snapshotComplete);
},
},
{
key: 'queuingComplete',
title: 'Queuing time',
onRender: (row: PerfStatsEvent) => {
return formatDiff(row.traversalComplete, row.queuingComplete);
return formatDiff(row.snapshotComplete, row.queuingComplete);
},
},
{

View File

@@ -164,6 +164,7 @@ function Visualization2DNode({
top: toPx(bounds.y),
width: toPx(bounds.width),
height: toPx(bounds.height),
opacity: isSelected || isHovered ? 0.5 : 1,
backgroundColor: isSelected
? theme.primaryColor
: isHovered