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

Function parseNumericToken

src/platforms/android/perf-parsing.ts:1–6  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

1export function parseNumericToken(token: string): number | null {
2 const match = token.replaceAll(',', '').match(/^-?\d+(?:\.\d+)?/);
3 if (!match) return null;
4 const value = Number(match[0]);
5 return Number.isFinite(value) ? value : null;
6}

Callers 5

matchLabeledNumberFunction · 0.90
matchTotalRowPssFunction · 0.90
parseAndroidFrameSummaryFunction · 0.90
matchSummaryIntegerFunction · 0.90

Calls 1

isFiniteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…