adb shell am profile <PROCESS> start <FILE> adb shell am profile <PROCESS> stop dmtracedump -o file.trace