Ensure adb root access and improve import path.
This change adds a function to ensure adb has root privileges before collecting smaps data from a device. It also improves the fallback mechanism for importing `profile_pb2` when `ANDROID_BUILD_TOP` is not set, by using the current working directory. Finally, a tip is added to show how to upload the generated pprof file.
Also refactored subprocess execution.
While doing so, removed feature for graceful handling of KeyboardInterrupt.
That feature is not important in hindsight.
Flag: EXEMPT host tool
Change-Id: I3710dad738bf244f662351af70be862297e74840
1 file changed