Skip to content

Commit 2dbdd2d

Browse files
authored
chore: roll latest chrome-devtools-frontend (#163)
This includes a better fix for the circular dependency problem and makes the changes in the MCP server based on the upstream DevTools implementation changes.
1 parent 6d9cd17 commit 2dbdd2d

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@types/yargs": "^17.0.33",
5252
"@typescript-eslint/eslint-plugin": "^8.43.0",
5353
"@typescript-eslint/parser": "^8.43.0",
54-
"chrome-devtools-frontend": "1.0.1520139",
54+
"chrome-devtools-frontend": "1.0.1520535",
5555
"eslint": "^9.35.0",
5656
"eslint-plugin-import": "^2.32.0",
5757
"eslint-import-resolver-typescript": "^4.4.4",

src/trace-processing/parse.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ export async function parseRawTraceBuffer(
7575

7676
export function getTraceSummary(result: TraceResult): string {
7777
const focus = AgentFocus.fromParsedTrace(result.parsedTrace);
78-
const formatter = new PerformanceTraceFormatter(
79-
focus,
80-
PerformanceInsightFormatter.create,
81-
);
78+
const formatter = new PerformanceTraceFormatter(focus);
8279
const output = formatter.formatTraceSummary();
8380
return output;
8481
}

tests/tools/performance.test.js.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This insight is used to analyze the time spent that contributed to the final LCP
66

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

0 commit comments

Comments
 (0)