API控制Valgrind中的数据收集

huangapple go评论60阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年5月14日 00:18:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76243748.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定