Erlang 跟踪器源代码
有谁知道哪些 Erlang 源文件负责其跟踪器(trace BIF)。
我正在研究 Erlang 中同步跟踪的可能性(其中受监视的进程等待接收跟踪消息的监视进程的继续)。现在我正在尝试决定是尝试修改 Erlang 的源代码还是为此类事情生成一个解析器。任何反馈将不胜感激。
谢谢。
Does anybody know which Erlang source files are responsible for its tracer (the trace BIF).
I am looking into the possibility of synchronous tracing in Erlang (where the monitored process waits for go-ahead from the monitoring process receiving the trace messages). For now I'm trying to decide whether to try modifying Erlang's source code or generate a parser for this sort of thing. Any feedback would be appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您想首先查看 erts/emulator/beam/erl_bif_trace.c,因为它实现了
trace/3
和朋友。 (例如,trace/3
由 C 函数trace_3()
实现。)您可能还对
erl_trace.c
感兴趣,它看起来是为模拟器做大量跟踪工作的函数。I believe you want to look at
erts/emulator/beam/erl_bif_trace.c
first, as that implementstrace/3
and friends. (trace/3
is implemented by the C functiontrace_3()
, for example.)You may also be interested in
erl_trace.c
, which looks to be the functions that do a lot of the tracing work for the emulator.