英文:
API to control data collection in Valgrind
问题
Valgrind是否提供某种API来控制数据收集?例如,Valgrind有一个称为Lackey的工具,用于跟踪内存访问。我想要跟踪内存访问,但只针对一个循环,而不是每个地方。因此,我想在循环之前调用valgrind.start_tracing(),在循环之后调用valgrind.stop_tracing()。这是否可能?
英文:
Does Valgrind provide some kind of API to control data collection? For example, Valgrind has a tool called Lackey that traces memory accesses. I would like to trace memory accesses, but only for one loop, not everywhere. So, I would like to call valgrind.start_tracing() before the loop and valgrind.stop_tracing() after the loop. Is this possible?
答案1
得分: 1
依照评论,客户的请求是正确的方式。
目前,对于"Lackey"而言还没有这样的请求。您需要自行添加。其他工具已经有类似的客户请求,可以控制仪器的开关。
英文:
As per the comment, the client request is the way to go.
At present none exist for lackey. You would need to add your own. Other tools already have similar client requests that can turn instrumentation off and on.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论