我在我的应用程序的几个分支上比较了cpu配置文件,并且我从控制台下载了.cpuprofile文件。我想并排比较它们,但我不清楚如何打开保存的文件。
答案 0 :(得分:3)
<强>更新强>
<强> Flamegraph 强>
网络版 - http://thlorenz.com/flamegraph/web/
源代码 - https://github.com/thlorenz/flamegraph
您可以使用.cpuprofile
--inputtype cpuprofile
文件
Chrome开发者工具
.cpuprofile
个文件是Google CPU Profiler二进制数据文件,N | Solid Console提供下载此格式的性能分析信息。我们可以通过一些性能工具来处理这种格式,也可以在Chrome开发者工具上查看。
Under&#34; Profiles&#34;选项卡,您可以单击&#34;加载&#34;按钮并提供.cpuprofile
文件。
similar question here有一个很好的答案。
答案 1 :(得分:1)
This comment介绍了如何从.cpuprofile
文件生成火焰图。