Yao Chen b5908aedc0 Fix incident_helper crash.
The header of top cmd changes from Tasks to Threads, causing the parser to run into
undefined behavior.

Bug: 125377622
Test: adb shell dumpsys incident   && incident_helper_test
Change-Id: I5ae88767dce22f0ee7b49611b2f19889a07e66ac
2019-03-04 14:28:30 -08:00

16 lines
709 B
Plaintext

Threads: 2038 total, 1 running,2033 sleeping, 0 stopped, 0 zombie
Mem: 3842668k total, 3761936k used, 80732k free, 220188k buffers
Swap: 524284k total, 25892k used, 498392k free, 1316952k cached
400%cpu 17%user 0%nice 43%sys 338%idle 0%iow 0%irq 1%sirq 0%host
PID TID USER PR NI[%CPU]S VIRT RES PCY CMD NAME
29438 29438 rootabcdefghij 20 0 57.9 R 14M 3.8M top test top
916 916 system 18 -2 1.4 S 4.6G 404M fg system_server system_server
28 28 root -2 0 1.4 S 0 0 bg rcuc/3 [rcuc/3]
27 27 root RT 0 1.4 S 0 0 ta migration/3 [migration/3]