【发布时间】:2011-09-08 14:22:54
【问题描述】:
如何在 Windows 中读取 gmon.out? Windows 无法打开该文件,因此gmon.out options 在命令行窗口中无法正常工作。
【问题讨论】:
如何在 Windows 中读取 gmon.out? Windows 无法打开该文件,因此gmon.out options 在命令行窗口中无法正常工作。
【问题讨论】:
gprof 是读取gmon.out 文件并从中显示信息的工具。
【讨论】:
gprof <executable-filename> gmon.out >output.txt 然后使用任何编辑器打开 output.txt。见手册:sourceware.org/binutils/docs-2.16/gprof