MCPcopy Create free account
hub / github.com/callstack/agent-device / matchSummaryInteger

Function matchSummaryInteger

src/platforms/android/perf-frame-parser.ts:370–376  ·  view source on GitHub ↗
(text: string, label: string)

Source from the content-addressed store, hash-verified

368}
369
370function matchSummaryInteger(text: string, label: string): number | undefined {
371 const escapedLabel = label.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
372 const match = text.match(new RegExp(`^\\s*${escapedLabel}:\\s*([0-9][0-9,]*)`, 'im'));
373 if (!match) return undefined;
374 const token = match[1];
375 return token === undefined ? undefined : (parseNumericToken(token) ?? undefined);
376}

Callers 1

parseAndroidFrameSummaryFunction · 0.85

Calls 1

parseNumericTokenFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…