(rawLine: string)
| 325 | } |
| 326 | |
| 327 | function 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 | |
| 335 | function shouldSkipAndroidMemInfoConsumerLine(line: string): boolean { |
| 336 | if (!line || line.startsWith('**') || line.startsWith('-') || line.includes(':')) return true; |
no test coverage detected
searching dependent graphs…