Skip to content

Commit f8cda8b

Browse files
committed
Show relative timestamp value in stack information too
1 parent f166665 commit f8cda8b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/profile-query-cli/formatters.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ Stack trace for marker ${result.markerHandle}: ${result.markerName}\n`;
221221
}
222222

223223
if (result.stack.capturedAt !== undefined) {
224-
output += `\nCaptured at: ${result.stack.capturedAt.toFixed(3)}ms\n`;
224+
const rootStart = result.context.rootRange.start;
225+
output += `\nCaptured at: ${formatDuration(result.stack.capturedAt - rootStart)}\n`;
225226
}
226227

227228
for (let i = 0; i < result.stack.frames.length; i++) {

0 commit comments

Comments
 (0)