Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@types/yargs": "^17.0.33",
"@typescript-eslint/eslint-plugin": "^8.43.0",
"@typescript-eslint/parser": "^8.43.0",
"chrome-devtools-frontend": "1.0.1520139",
"chrome-devtools-frontend": "1.0.1520535",
"eslint": "^9.35.0",
"eslint-plugin-import": "^2.32.0",
"eslint-import-resolver-typescript": "^4.4.4",
Expand Down
5 changes: 1 addition & 4 deletions src/trace-processing/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ export async function parseRawTraceBuffer(

export function getTraceSummary(result: TraceResult): string {
const focus = AgentFocus.fromParsedTrace(result.parsedTrace);
const formatter = new PerformanceTraceFormatter(
focus,
PerformanceInsightFormatter.create,
);
const formatter = new PerformanceTraceFormatter(focus);
const output = formatter.formatTraceSummary();
return output;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/tools/performance.test.js.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This insight is used to analyze the time spent that contributed to the final LCP

## Detailed analysis:
The Largest Contentful Paint (LCP) time for this navigation was 129 ms.
The LCP element is an image fetched from https://web-dev.imgix.net/image/kheDArv5csY6rvQUJDbWRscckLr1/4i7JstVZvgTFk9dxCe4a.svg (eventKey: s-1314).
The LCP element is an image fetched from https://web-dev.imgix.net/image/kheDArv5csY6rvQUJDbWRscckLr1/4i7JstVZvgTFk9dxCe4a.svg (eventKey: s-1314, ts: 122411037986).
## LCP resource network request: https://web-dev.imgix.net/image/kheDArv5csY6rvQUJDbWRscckLr1/4i7JstVZvgTFk9dxCe4a.svg
eventKey: s-1314
Timings:
Expand Down
Loading