我正在尝试perf probe
在我的库中为 C++ 方法添加一个,但我不断收到以下信息:
$ perf probe --exec=/path/to/file --add='my::Own::Method'
Semantic error :There is non-digit char in line number.
我列出了可用的功能,如下所示:
$ perf probe --funcs --exec=/path/to/file
并尝试了一些也包含在内的 C 函数。可以为这些添加探针。所以我尝试了错误的名称(例如_ZN2my8Own16Method
)并perf probe
说它不存在。
有没有办法解决这个问题?