From 4a4b9f657499b827d644657649ee20a4a7834f88 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 9 May 2024 15:07:23 -0700 Subject: [PATCH] Update comment --- packages/trace-viewer/src/ui/modelUtil.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/trace-viewer/src/ui/modelUtil.ts b/packages/trace-viewer/src/ui/modelUtil.ts index 77a89fb278..19fff2784a 100644 --- a/packages/trace-viewer/src/ui/modelUtil.ts +++ b/packages/trace-viewer/src/ui/modelUtil.ts @@ -222,7 +222,8 @@ function mergeActionsAndUpdateTimingSameTrace(contexts: ContextEntry[]) { // Protocol call aka isPrimary contexts have startTime/endTime as server-side times. // Step aka non-isPrimary contexts have startTime/endTime are client-side times. - // Adjust expect startTime/endTime on non-primary contexts to put them on a single timeline. + // Adjust startTime/endTime on the primary contexts to align them with the test + // runner steps. const delta = monotonicTimeDeltaBetweenLibraryAndRunner(nonPrimaryContexts, map); if (delta) adjustMonotonicTime(primaryContexts, delta);