Merge "Limit the number of times app_profiler.py tries to kill an app process." am: bdac23b00c

Original change: https://android-review.googlesource.com/c/platform/system/extras/+/1814900

Change-Id: I7353db870e7ed0ed44cce630c0b53288a5aaa8c7