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

Function parseAndroidDurationMs

src/daemon/network-log.ts:297–302  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

295}
296
297function parseAndroidDurationMs(line: string): number | null {
298 const match = /\b(?:duration|elapsed request\/response time, ms)[:= ]+(\d+)\b/i.exec(line);
299 if (!match) return null;
300 const value = Number.parseInt(match[1] ?? '', 10);
301 return Number.isInteger(value) ? value : null;
302}
303
304function parseEmbeddedJson(line: string): Record<string, unknown> | null {
305 const start = line.indexOf('{');

Callers 2

parseNetworkLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…