我正在比较我的应用程序的几个分支上的cpu profile,并且我已经从控制台下载了.cpuprofile文件。我想将它们并排比较,但我不清楚如何打开保存的文件。
发布于 2016-03-05 00:52:08
更新:
火焰图
网页版本- http://thlorenz.com/flamegraph/web/
源代码- https://github.com/thlorenz/flamegraph
您可以使用--inputtype cpuprofile提供.cpuprofile文件
Chrome开发工具
.cpuprofile文件是Google CPU Profiler二进制数据文件,N|Solid控制台提供下载此格式的分析信息。这个格式我们可以通过一些性能工具读取,也可以在Chrome开发工具上查看。
在"Profiles“选项卡下,您可以单击"Load”按钮并提供.cpuprofile文件。
有一个similar question here有一个很好的答案。
发布于 2016-03-05 03:39:21
This comment描述了如何从.cpuprofile文件生成火焰图。
https://stackoverflow.com/questions/35801345
复制相似问题