使用`callGrind`来计数linux中的函数调用
I am trying to track function call counts on a program I'm interested in. If I run the program on its own, it will run fine. If I try to run it with valgrind using the command seen below I seem to be getting a different result.
Produces this input immediately, even though the execution is normally slow.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我要说的是,这更有可能与 this 问题。但是,可以肯定的是,您需要告诉我们
如果您可以将其切成小示例并更新此或FREXP BUGZILLA项目,这将有所帮助。
I'd say that this is more likely to be related to this issue. However to be certain you will need to tell us
It would help if you can cut this down to a small example and either update this or the frexp bugzilla items.
valgrind具有有限的浮点支撑。您可能正在使用非标准或非常大的浮子。
更新:由于您使用的是
长
,因此您不幸。很遗憾,考虑到您正在使用现有项目,这可能并不容易。
valgrind has limited floating point support. You're probably using non-standard or very large floats.
UPDATE: since you're using
long double
, you're outta luck. Unfortunately,This probably isn't easy considering you're using an existing project.