MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / getTraceSummary

Function getTraceSummary

src/trace-processing/parse.ts:83–95  ·  view source on GitHub ↗
(
  result: TraceResult,
  deviceScope?: DevTools.CrUXManager.DeviceScope | null,
)

Source from the content-addressed store, hash-verified

81${DevTools.PerformanceTraceFormatter.networkDataFormatDescription}`;
82
83export function getTraceSummary(
84 result: TraceResult,
85 deviceScope?: DevTools.CrUXManager.DeviceScope | null,
86): string {
87 const focus = DevTools.AgentFocus.fromParsedTrace(result.parsedTrace);
88 const formatter = new DevTools.PerformanceTraceFormatter(focus, deviceScope);
89 const summaryText = formatter.formatTraceSummary();
90 return `## Summary of Performance trace findings:
91${summaryText}
92
93## Details on call tree & network request formats:
94${extraFormatDescriptions}`;
95}
96
97export type InsightName =
98 keyof DevTools.TraceEngine.Insights.Types.InsightModels;

Callers 2

formatMethod · 0.85
parse.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected