MCPcopy Index your code
hub / github.com/callstack/agent-device / readAndroidMemInfoConsumer

Function readAndroidMemInfoConsumer

src/platforms/android/perf.ts:327–333  ·  view source on GitHub ↗
(rawLine: string)

Source from the content-addressed store, hash-verified

325}
326
327function readAndroidMemInfoConsumer(rawLine: string): AndroidMemoryConsumer | undefined {
328 const line = rawLine.trim();
329 if (shouldSkipAndroidMemInfoConsumerLine(line)) return undefined;
330 const match = line.match(/^(.+?)\s+([0-9][0-9,]*(?:\(\d+\))?)(?:\s|$)/);
331 if (!match) return undefined;
332 return buildAndroidMemInfoConsumer(match[1], match[2]);
333}
334
335function shouldSkipAndroidMemInfoConsumerLine(line: string): boolean {
336 if (!line || line.startsWith('**') || line.startsWith('-') || line.includes(':')) return true;

Callers 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…