本文介绍了Luke Stackwalker运行时返回错误,gprof正常运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我习惯于gprof来分析我的C代码,但是我想开始使用基于GUI的Windows应用程序,例如Luke Stackwalker. gprof在我的二进制文件上可以很好地工作,但是Luke Stackwalker有一些问题:

I'm used to gprof for profiling my C code, but I want to start using a GUI-based Windows application such as Luke Stackwalker. gprof works perfectly fine on my binary, but Luke Stackwalker has some issues:

Launching executable C:\lshare\POT03\Eclipse\Debug\POTaak3.exe.
SymInit: Symbol-SearchPath: ';.;C:\Program Files\Luke Stackwalker;C:\Program Files\Luke Stackwalker;C:\WINDOWS;C:\WINDOWS\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'Pieter'

OS-Version: 5.1.2600 (Service Pack 3) 0x100-0x1

C:\lshare\POT03\Eclipse\Debug\POTaak3.exe:POTaak3.exe (00400000), size: 61440, SymType: '-unknown-', PDB: '$Tƒ|'
C:\WINDOWS\system32\ntdll.dll:ntdll.dll (7C900000), size: 753664, SymType: '-unknown-', PDB: '©Uƒ|'
C:\WINDOWS\system32\kernel32.dll:kernel32.dll (7C7D0000), size: 1048576, SymType: '-unknown-', PDB: '©Uƒ|'
C:\WINDOWS\system32\msvcrt.dll:msvcrt.dll (77BE0000), size: 360448, SymType: '-unknown-', PDB: '©Uƒ|'
ERROR: SymGetModuleInfo64, GetLastError: 1114 (Address: 7C90E514)
Sorting profile data.
Done; 2 samples collected at 1.$ samples/second.

谁在现在的枪声中枪杀了谁?我在这里做错了什么?我确实记得使用-pg标志.

Who shot the who in the what now? What am I doing wrong here? I did remember to use the -pg flag.

推荐答案

我了解您为什么要 gprof 以外的其他内容.卢克·斯塔克沃克(Luke Stackwalker)提取堆栈样本,但是(我最后一次检查)它没有总结在代码行级别使用的壁钟时间(包括在内)的百分比.在Linux上,您可以使用 lsstack pstack ,并且Windows上必须有一个类似的工具.在您的情况下,我仅依靠IDE中的暂停"按钮执行 stackshots .

I understand why you want something other than gprof. Luke Stackwalker takes stack samples, but (last time I checked) it doesn't summarize inclusive % of wall-clock time used at the level of lines of code. On Linux, you could use lsstack or pstack, and there must be a similar tool on Windows. In your situation, I just rely on the pause button in the IDE to take stackshots.

这篇关于Luke Stackwalker运行时返回错误,gprof正常运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 12:00