如何仅分析一个程序范围
我需要非常详细地描述程序中的一些操作。 像cachegrind 这样的东西会非常好。
但我的问题是,设置数据结构需要很长时间,而且我无法将它用于整个程序。 运行需要几个小时。
有谁知道库附带的分析工具,我可以在其中在我想要分析数据的部分放置“start_profiling()”和“end_profiling()”调用。
代码是用C++编写的
I need to profile some operations in my program in great detail.
Something like cachegrind would be very nice.
But my problem is that it takes a long time to setup the data structure and i can't use it for the whole program. It will take hours to run.
Does anyone know about a profiling tool that comes with a library and where i can just put a "start_profiling()" and "end_profiling()" call around the parts where i want profiling data.
The code is written in C++
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Shiny C++ Profiler 速度非常快,而且能够并允许您(实际上,几乎需要您)通过在代码中的自定义点插入其函数来指定要分析程序的哪些部分。
Shiny C++ Profiler is very fast and capable and allows you (actually, pretty much requires you to) specify which parts of your program that you want to profile by inserting its functions at custom points in your code.