MCPcopy Index your code
hub / github.com/ChromeDevTools/chrome-devtools-mcp / parseTrace

Function parseTrace

tests/tools/performance.test.ts:217–224  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

215
216 describe('performance_analyze_insight', () => {
217 async function parseTrace(fileName: string): Promise<TraceResult> {
218 const rawData = loadTraceAsBuffer(fileName);
219 const result = await parseRawTraceBuffer(rawData);
220 if (!traceResultIsSuccess(result)) {
221 assert.fail(`Unexpected trace parse error: ${result.error}`);
222 }
223 return result;
224 }
225
226 it('returns the information on the insight', async () => {
227 const trace = await parseTrace('web-dev-with-commit.json.gz');

Callers 1

Calls 3

loadTraceAsBufferFunction · 0.85
parseRawTraceBufferFunction · 0.85
traceResultIsSuccessFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…