adb shell am profile start <pkg> <file> 命令详解

启动方法性能分析并写入文件

命令语法
adb shell am profile start <pkg> <file>
命令说明
启动方法性能分析并写入文件
示例
$ adb shell am profile start com.example.demo /sdcard/trace.trace
高级调试相关命令

adb shell am profile start <pkg> <file> 用法说明

adb shell am profile start <pkg> <file> 是「高级调试」分类下的常用命令,作用是:启动方法性能分析并写入文件。

典型用法如下:adb shell am profile start com.example.demo /sdcard/trace.trace。你可以查看本页上方同组的相关命令,或直接复制到终端运行。

常见问题解答

adb shell am profile start <pkg> <file> 是什么?
adb shell am profile start <pkg> <file> 用于启动方法性能分析并写入文件,属于「高级调试」相关命令。
adb shell am profile start <pkg> <file> 怎么用?
在终端执行 adb shell am profile start com.example.demo /sdcard/trace.trace 即可,具体参数请按实际环境调整。
还有哪些相关命令?
高级调试分类下还有 13 条相关命令,见本页上方「相关命令」。

同类工具