现在debug_console只能获取到lua服务的信息,c服务应该也定义一些供采集信息的接口。 #1591
Replies: 6 comments 3 replies
-
debug console 可以对任意服务发送消息,所以,只要你的 C 服务能相应定义好的消息就可以。你可以在 C 服务嵌入一个 lua vm 去解析 lua 消息。 |
Beta Was this translation helpful? Give feedback.
-
还有几个内置的C服务。比如habor |
Beta Was this translation helpful? Give feedback.
-
现在我们的项目中用了大量skynet.send(全局名字),这样的用法,我想通过debug_console看看habor的转发会不会有什么问题。habor的CPU和消息队列的情况。发现做不到 |
Beta Was this translation helpful? Give feedback.
-
如果是定义一个简单的文本回调,C服务就能很方便地影响debug_console的命令,现在这种太麻烦了。 |
Beta Was this translation helpful? Give feedback.
-
不要用 global name , 用 . 开头的 local name 。 |
Beta Was this translation helpful? Give feedback.
-
skynet 的发展趋势是尽量去掉所有 C 服务,全部迁移到 lua 服务中。所有 C 服务相关的代码只减不增。 |
Beta Was this translation helpful? Give feedback.
-
现在debug_console只能获取到lua服务的信息,c服务应该也定义一些供采集信息的接口。
Beta Was this translation helpful? Give feedback.
All reactions